Lines Matching refs:findPage
270 Page* findPage = nullptr; in writeItem() local
275 err = findItem(nsIndex, ItemType::BLOB_IDX, key, findPage, item); in writeItem()
277 err = findItem(nsIndex, datatype, key, findPage, item); in writeItem()
287 if (findPage) { in writeItem()
295 if (findPage->state() == Page::PageState::UNINITIALIZED || in writeItem()
296 findPage->state() == Page::PageState::INVALID) { in writeItem()
297 ESP_ERROR_CHECK(findItem(nsIndex, datatype, key, findPage, item)); in writeItem()
317 if (findPage) { in writeItem()
328 findPage = nullptr; in writeItem()
331 err = findItem(nsIndex, datatype, key, findPage, item); in writeItem()
340 if (findPage != nullptr && in writeItem()
341 findPage->cmpItem(nsIndex, datatype, key, data, dataSize) == ESP_OK) { in writeItem()
371 if (findPage) { in writeItem()
372 if (findPage->state() == Page::PageState::UNINITIALIZED || in writeItem()
373 findPage->state() == Page::PageState::INVALID) { in writeItem()
374 ESP_ERROR_CHECK(findItem(nsIndex, datatype, key, findPage, item)); in writeItem()
376 err = findPage->eraseItem(nsIndex, datatype, key); in writeItem()
440 Page* findPage = nullptr; in readMultiPageBlob() local
443 auto err = findItem(nsIndex, ItemType::BLOB_IDX, key, findPage, item); in readMultiPageBlob()
456 …err = findItem(nsIndex, ItemType::BLOB_DATA, key, findPage, item, static_cast<uint8_t> (chunkStart… in readMultiPageBlob()
463 …err = findPage->readItem(nsIndex, ItemType::BLOB_DATA, key, static_cast<uint8_t*>(data) + offset, … in readMultiPageBlob()
482 Page* findPage = nullptr; in cmpMultiPageBlob() local
485 auto err = findItem(nsIndex, ItemType::BLOB_IDX, key, findPage, item); in cmpMultiPageBlob()
501 …err = findItem(nsIndex, ItemType::BLOB_DATA, key, findPage, item, static_cast<uint8_t> (chunkStart… in cmpMultiPageBlob()
508 …err = findPage->cmpItem(nsIndex, ItemType::BLOB_DATA, key, static_cast<const uint8_t*>(data) + off… in cmpMultiPageBlob()
528 Page* findPage = nullptr; in readItem() local
536 auto err = findItem(nsIndex, datatype, key, findPage, item); in readItem()
540 return findPage->readItem(nsIndex, datatype, key, data, dataSize); in readItem()
550 Page* findPage = nullptr; in eraseMultiPageBlob() local
552 …auto err = findItem(nsIndex, ItemType::BLOB_IDX, key, findPage, item, Page::CHUNK_ANY, chunkStart); in eraseMultiPageBlob()
557 err = findPage->eraseItem(nsIndex, ItemType::BLOB_IDX, key, Page::CHUNK_ANY, chunkStart); in eraseMultiPageBlob()
572 …err = findItem(nsIndex, ItemType::BLOB_DATA, key, findPage, item, static_cast<uint8_t> (chunkStart… in eraseMultiPageBlob()
579 …err = findPage->eraseItem(nsIndex, ItemType::BLOB_DATA, key, static_cast<uint8_t> (chunkStart) + c… in eraseMultiPageBlob()
600 Page* findPage = nullptr; in eraseItem() local
601 auto err = findItem(nsIndex, datatype, key, findPage, item); in eraseItem()
610 return findPage->eraseItem(nsIndex, datatype, key); in eraseItem()
641 Page* findPage = nullptr; in getItemDataSize() local
642 auto err = findItem(nsIndex, datatype, key, findPage, item); in getItemDataSize()
647 err = findItem(nsIndex, ItemType::BLOB_IDX, key, findPage, item); in getItemDataSize()