struct VolumeDescriptor

Defined at line 24 of file ../../src/storage/volume_image/volume_descriptor.h

Metadata describing the block image to be generated.

Public Members

array instance
array type
basic_string name
uint64_t block_size
EncryptionType encryption
unordered_set options
uint64_t size
static const uint64_t kMagic

Public Methods

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

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

Defined at line 25 of file ../../src/storage/volume_image/volume_descriptor.cc

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

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

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

std::string DebugString ()

Defined at line 138 of file ../../src/storage/volume_image/volume_descriptor.cc

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

Returns a byte vector containing the serialized version data.

The serialization is meant to be human readable.

Defined at line 95 of file ../../src/storage/volume_image/volume_descriptor.cc