class Partition
Defined at line 26 of file ../../src/storage/volume_image/partition.h
A Partition consists of the volume descriptor, allowing the fvm to know how the partition should
look, an address descriptor allowing the fvm to know how the volume data should be moved in the
fvm address space and last a reader, which provides access to the volume data in the volume
address space.
This class is move constructible and move assignable only.
This class is thread-compatible.
Public Methods
fpromise::result<Partition, std::string> Create (std::string_view serialized_volume_image, std::unique_ptr<Reader> reader)
On success returns a Partition representing the serialized volume image, which contains the
volume and address descriptors, and backed by |reader|. On error retruns a string describing
the failure reason.
Defined at line 23 of file ../../src/storage/volume_image/partition.cc
void Partition ()
Defined at line 42 of file ../../src/storage/volume_image/partition.h
void Partition (VolumeDescriptor volume_descriptor, AddressDescriptor address_descriptor, std::unique_ptr<Reader> reader)
Defined at line 43 of file ../../src/storage/volume_image/partition.h
void Partition (const Partition & )
Defined at line 48 of file ../../src/storage/volume_image/partition.h
void Partition (Partition && )
Defined at line 49 of file ../../src/storage/volume_image/partition.h
Partition & operator= (const Partition & )
Defined at line 50 of file ../../src/storage/volume_image/partition.h
Partition & operator= (Partition && )
Defined at line 51 of file ../../src/storage/volume_image/partition.h
void ~Partition ()
Defined at line 52 of file ../../src/storage/volume_image/partition.h
const VolumeDescriptor & volume ()
Returns the volume descriptor for this partition.
Defined at line 55 of file ../../src/storage/volume_image/partition.h
VolumeDescriptor & volume ()
Defined at line 56 of file ../../src/storage/volume_image/partition.h
const AddressDescriptor & address ()
Returns the address descriptor for this partition.
Defined at line 59 of file ../../src/storage/volume_image/partition.h
const Reader * reader ()
Returns the reader for this partition, which allows reading the volume data from the source
address space.
Defined at line 63 of file ../../src/storage/volume_image/partition.h