Home
last modified time | relevance | path

Searched refs:dataSize (Results 1 – 12 of 12) sorted by relevance

/hal_espressif-3.6.0/components/nvs_flash/src/
Dnvs_storage.cpp161 …ultiPageBlob(uint8_t nsIndex, const char* key, const void* data, size_t dataSize, VerOffset chunkS… in writeMultiPageBlob() argument
165 size_t remainingSize = dataSize; in writeMultiPageBlob()
176 if (dataSize > max_pages * Page::CHUNK_MAX_SIZE) { in writeMultiPageBlob()
184 …if (chunkCount == 0U && ((tailroom < dataSize) || (tailroom == 0 && dataSize == 0)) && tailroom < … in writeMultiPageBlob()
243 item.blobIndex.dataSize = dataSize; in writeMultiPageBlob()
264 …::writeItem(uint8_t nsIndex, ItemType datatype, const char* key, const void* data, size_t dataSize) in writeItem() argument
291 if (cmpMultiPageBlob(nsIndex, key, data, dataSize) == ESP_OK) { in writeItem()
308 err = writeMultiPageBlob(nsIndex, key, data, dataSize, nextStart); in writeItem()
341 findPage->cmpItem(nsIndex, datatype, key, data, dataSize) == ESP_OK) { in writeItem()
346 err = page.writeItem(nsIndex, datatype, key, data, dataSize); in writeItem()
[all …]
Dnvs_page.cpp166 …t nsIndex, ItemType datatype, const char* key, const void* data, size_t dataSize, uint8_t chunkIdx) in writeItem() argument
191 if (dataSize > Page::CHUNK_MAX_SIZE) { in writeItem()
195 if ((!isVariableLengthType(datatype)) && dataSize > 8) { in writeItem()
202 size_t roundedSize = (dataSize + ENTRY_SIZE - 1) & ~(ENTRY_SIZE - 1); in writeItem()
226 memcpy(item.data, data, dataSize); in writeItem()
234 item.varLength.dataCrc32 = Item::calculateCrc32(src, dataSize); in writeItem()
235 item.varLength.dataSize = dataSize; in writeItem()
243 size_t rest = dataSize % ENTRY_SIZE; in writeItem()
244 size_t left = dataSize - rest; in writeItem()
266 …uint8_t nsIndex, ItemType datatype, const char* key, void* data, size_t dataSize, uint8_t chunkIdx… in readItem() argument
[all …]
Dnvs_storage.hpp76 … writeItem(uint8_t nsIndex, ItemType datatype, const char* key, const void* data, size_t dataSize);
78 …p_err_t readItem(uint8_t nsIndex, ItemType datatype, const char* key, void* data, size_t dataSize);
80 … esp_err_t getItemDataSize(uint8_t nsIndex, ItemType datatype, const char* key, size_t& dataSize);
118 …ultiPageBlob(uint8_t nsIndex, const char* key, const void* data, size_t dataSize, VerOffset chunkS…
120 esp_err_t readMultiPageBlob(uint8_t nsIndex, const char* key, void* data, size_t dataSize);
122 esp_err_t cmpMultiPageBlob(uint8_t nsIndex, const char* key, const void* data, size_t dataSize);
Dnvs_handle_locked.cpp70 …ndleLocked::set_typed_item(ItemType datatype, const char *key, const void* data, size_t dataSize) { in set_typed_item() argument
72 return handle->set_typed_item(datatype, key, data, dataSize); in set_typed_item()
75 … NVSHandleLocked::get_typed_item(ItemType datatype, const char *key, void* data, size_t dataSize) { in get_typed_item() argument
77 return handle->get_typed_item(datatype, key, data, dataSize); in get_typed_item()
Dnvs_handle_simple.cpp24 …HandleSimple::set_typed_item(ItemType datatype, const char *key, const void* data, size_t dataSize) in set_typed_item() argument
29 return mStoragePtr->writeItem(mNsIndex, datatype, key, data, dataSize); in set_typed_item()
32 …_t NVSHandleSimple::get_typed_item(ItemType datatype, const char *key, void* data, size_t dataSize) in get_typed_item() argument
36 return mStoragePtr->readItem(mNsIndex, datatype, key, data, dataSize); in get_typed_item()
Dnvs_handle_simple.hpp45 …esp_err_t set_typed_item(ItemType datatype, const char *key, const void *data, size_t dataSize) ov…
47 …esp_err_t get_typed_item(ItemType datatype, const char *key, void *data, size_t dataSize) override;
67 esp_err_t getItemDataSize(ItemType datatype, const char *key, size_t &dataSize);
Dnvs_handle_locked.hpp61 …esp_err_t set_typed_item(ItemType datatype, const char *key, const void* data, size_t dataSize) ov…
63 …esp_err_t get_typed_item(ItemType datatype, const char *key, void* data, size_t dataSize) override;
Dnvs_api.cpp499 size_t dataSize; in nvs_get_str_or_blob() local
500 err = handle->get_item_size(type, key, dataSize); in nvs_get_str_or_blob()
508 *length = dataSize; in nvs_get_str_or_blob()
510 } else if (*length < dataSize) { in nvs_get_str_or_blob()
511 *length = dataSize; in nvs_get_str_or_blob()
515 *length = dataSize; in nvs_get_str_or_blob()
516 return handle->get_typed_item(type, key, out_value, dataSize); in nvs_get_str_or_blob()
Dnvs_types.hpp63 uint16_t dataSize; member
68 uint32_t dataSize; member
Dnvs_page.hpp96 …t nsIndex, ItemType datatype, const char* key, const void* data, size_t dataSize, uint8_t chunkIdx…
98 …uint8_t nsIndex, ItemType datatype, const char* key, void* data, size_t dataSize, uint8_t chunkIdx…
100 …t nsIndex, ItemType datatype, const char* key, const void* data, size_t dataSize, uint8_t chunkIdx…
/hal_espressif-3.6.0/components/nvs_flash/include/
Dnvs_handle.hpp204 …sp_err_t set_typed_item(ItemType datatype, const char *key, const void* data, size_t dataSize) = 0;
206 …tual esp_err_t get_typed_item(ItemType datatype, const char *key, void* data, size_t dataSize) = 0;
/hal_espressif-3.6.0/components/nvs_flash/test_nvs_host/
Dtest_nvs.cpp485 size_t dataSize; variable
486 CHECK(storage.getItemDataSize(1, ItemType::SZ, "foobaar", dataSize) == ESP_OK);
487 CHECK(dataSize == len + 1);
490 CHECK(storage.getItemDataSize(2, ItemType::BLOB, "foobaar", dataSize) == ESP_OK);
491 CHECK(dataSize == len);
2474 item.blobIndex.dataSize = sizeof(hexdata);
2529 item.blobIndex.dataSize = sizeof(hexdata);