blob: a84a22e944d42db53033ef2ff37748c6ba3335f7 [file] [log] [blame]
Wyatt Heplerf9fb90f2020-09-30 18:59:33 -07001.. _module-pw_blob_store:
David Rogers2d195022020-07-16 14:07:47 -07002
3-------------
4pw_blob_store
5-------------
6``pw_blob_store`` is a storage container library for storing a single blob of
7data. Blob_store is a flash-backed persistent storage system with integrated
8data integrity checking that serves as a lightweight alternative to a file
9system.
10
11Write and read are only done using the BlobWriter and BlobReader classes.
12
13Once a blob write is closed, reopening followed by a Discard(), Write(), or
14Erase() will discard the previous blob.
15
16Write blob:
17 0) Create BlobWriter instance
18 1) BlobWriter::Open().
19 2) Add data using BlobWriter::Write().
20 3) BlobWriter::Close().
21
22Read blob:
23 0) Create BlobReader instance
24 1) BlobReader::Open().
25 2) Read data using BlobReader::Read() or
26 BlobReader::GetMemoryMappedBlob().
27 3) BlobReader::Close().
28
29.. note::
30 The documentation for this module is currently incomplete.