class BlobDataProducer

Defined at line 16 of file ../../src/storage/blobfs/blob_data_producer.h

BlobDataProducer is an abstract class that is used when writing blobs. It produces data (see the

Consume method) which is then to be written to the device.

Public Methods

std::span<const uint8_t> Consume (uint64_t max)

Consumes up to |max| bytes from the producer. |max| must be a multiple of |kBlobfsBlockSize|.

Producers must always produce a multiple of |kBlobfsBlockSize|. An empty span is returned when

the producer has run out of data.