aboutsummaryrefslogtreecommitdiff
path: root/pw_blob_store/docs.rst
diff options
context:
space:
mode:
Diffstat (limited to 'pw_blob_store/docs.rst')
-rw-r--r--pw_blob_store/docs.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/pw_blob_store/docs.rst b/pw_blob_store/docs.rst
index 23bd3f465..a418f58af 100644
--- a/pw_blob_store/docs.rst
+++ b/pw_blob_store/docs.rst
@@ -16,6 +16,11 @@ Most operations on a ``BlobStore`` are done using ``BlobReader`` and
a ``BlobStore`` may have multiple open ``BlobReader`` objects, no other
readers/writers may be active if a ``BlobWriter`` is opened on a blob store.
+The data state of a blob can be checked using the ``HasData()`` method.
+The method returns true if the blob is currenty valid and has at least one data
+byte. This allows checking if a blob has stored data without needing to
+instantiate and open a reader or writer.
+
Write buffer
============
@@ -88,6 +93,9 @@ for the ``std::string_view`` to be invalidated after the function returns.
Reading from a BlobStore
------------------------
+A ``BlobStore`` may have multiple open ``BlobReader`` objects. No other
+readers/writers may be open/active if a ``BlobWriter`` is opened on a blob
+store.
0) Create BlobReader instance
1) BlobReader::Open().