/hal_espressif-3.6.0/components/nvs_flash/src/ |
D | nvs_storage.cpp | 161 …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 …]
|
D | nvs_page.cpp | 166 …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 …]
|
D | nvs_storage.hpp | 76 … 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);
|
D | nvs_handle_locked.cpp | 70 …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()
|
D | nvs_handle_simple.cpp | 24 …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()
|
D | nvs_handle_simple.hpp | 45 …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);
|
D | nvs_handle_locked.hpp | 61 …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;
|
D | nvs_api.cpp | 499 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()
|
D | nvs_types.hpp | 63 uint16_t dataSize; member 68 uint32_t dataSize; member
|
D | nvs_page.hpp | 96 …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/ |
D | nvs_handle.hpp | 204 …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/ |
D | test_nvs.cpp | 485 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);
|