struct AddressDescriptor

Defined at line 44 of file ../../src/storage/volume_image/address_descriptor.h

Represents how the input partition image, should be transformed to fit in the image.

Public Members

vector mappings
static const uint64_t kMagic

Public Methods

fpromise::result<AddressDescriptor, std::string> Deserialize (std::span<const char> serialized)

On success returns the VolumeDescriptor with the deserialized contents of |serialized|.

Defined at line 54 of file ../../src/storage/volume_image/address_descriptor.h

fpromise::result<AddressDescriptor, std::string> Deserialize (std::span<const uint8_t> serialized)

Returns an |AddressDescriptor| containing the deserialized contents from |serialized|.

On error, returns a string describing the error condition.

Defined at line 61 of file ../../src/storage/volume_image/address_descriptor.cc

fpromise::result<std::vector<uint8_t>, std::string> Serialize ()

Returns a vector containing a serialized version of |this|.

On error, returns a string describing the error condition.

Defined at line 93 of file ../../src/storage/volume_image/address_descriptor.cc