class Reader

Defined at line 20 of file ../../src/storage/volume_image/utils/reader.h

Provides a reader interface to abstract platform, and devices particular nuisance to the image

process.

The reader requires an explicit offset, to allow compatibility with non posix interfaces.

Public Methods

uint64_t length ()

Returns the number of bytes readable from this reader.

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

On success data at [|offset|, |offset| + |buffer.size()|] are read into

|buffer|.

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

void ~Reader ()

Defined at line 22 of file ../../src/storage/volume_image/utils/reader.h