pw_blob_store

pw_blob_store is a storage container library for storing a single blob of data. Blob_store is a flash-backed persistent storage system with integrated data integrity checking that serves as a lightweight alternative to a file system.

Write and read are only done using the BlobWriter and BlobReader classes.

Once a blob write is closed, reopening for write followed by a Discard(), Write(), or Erase() will discard the previous blob.

Write blob:
  1. Create BlobWriter instance

  2. BlobWriter::Open().

  3. Add data using BlobWriter::Write().

  4. BlobWriter::Close().

Read blob:
  1. Create BlobReader instance

  2. BlobReader::Open().

  3. Read data using BlobReader::Read() or BlobReader::GetMemoryMappedBlob().

  4. BlobReader::Close().

Size report

The following size report showcases the memory usage of the blob store.

Label

Segment

Before

Delta

After

BlobStore

FLASH
34,668
+4,944
39,612

BlobStore with deferred write

FLASH
34,668
+5,336
40,004

Note

The documentation for this module is currently incomplete.