class IncrementalWriter

Defined at line 186 of file ../../src/storage/blobfs/test/blob_utils.h

A convenience class that manages sending data to a `BlobWriter`.

Public Methods

void IncrementalWriter (BlobWriterWrapper & writer, std::span<const uint8_t> data, zx::vmo vmo)

`writer` and `data` must outlive this class.

Defined at line 299 of file ../../src/storage/blobfs/test/blob_utils.cc

zx::result<> Write (uint64_t amount)

Writes |amount| of bytes from the stored data into the vmo and calls BytesReady. |amount| must

not be zero and must not exceed the number of remaining bytes.

Defined at line 303 of file ../../src/storage/blobfs/test/blob_utils.cc

zx::result<> Complete ()

Writes all remaining stored bytes. There must be some remaining bytes.

Defined at line 322 of file ../../src/storage/blobfs/test/blob_utils.cc