class BlockWriter

Defined at line 21 of file ../../src/storage/volume_image/utils/block_writer.h

Adapts the Writer API to a block device-like API. That is, converts unaligned writes into aligned

ones, by reading back the aligned data and patching the unaligned data into it.

Public Methods

fpromise::result<void, std::string> Write (uint64_t offset, std::span<const uint8_t> buffer)

On success data backing this writer is updated at [|offset|, |offset| +

|buffer.size()|] to |buffer|.

On error the returned result to contains a string describing the error.

Defined at line 12 of file ../../src/storage/volume_image/utils/block_writer.cc

void BlockWriter (uint64_t block_size, uint64_t block_count, std::unique_ptr<Reader> reader, std::unique_ptr<Writer> writer)

Defined at line 23 of file ../../src/storage/volume_image/utils/block_writer.h

void BlockWriter (const BlockWriter & )

Defined at line 31 of file ../../src/storage/volume_image/utils/block_writer.h

void BlockWriter (BlockWriter && )

Defined at line 32 of file ../../src/storage/volume_image/utils/block_writer.h

BlockWriter & operator= (const BlockWriter & )

Defined at line 33 of file ../../src/storage/volume_image/utils/block_writer.h

BlockWriter & operator= (BlockWriter && )

Defined at line 34 of file ../../src/storage/volume_image/utils/block_writer.h