class PartitionClient

Defined at line 36 of file ../../src/firmware/paver/partition-client.h

Interface to synchronously read/write to a partition.

Public Methods

zx::result<size_t> GetBlockSize ()

Returns the block size which the vmo provided to read/write should be aligned to.

zx::result<size_t> GetPartitionSize ()
zx::result<> Read (const zx::vmo & vmo, size_t size)

Reads the specified size from the partition into |vmo|. |size| must be aligned to the block

size returned in `GetBlockSize`.

zx::result<> Write (const zx::vmo & vmo, size_t vmo_size)

Writes |vmo| into the partition. |vmo_size| must be aligned to the block size returned in

`GetBlockSize`.

zx::result<> Trim ()

Issues a trim to the entire partition.

zx::result<> Flush ()

Flushes all previous operations to persistent storage.

bool SupportsBlockPartition ()

Indicates whether the derrived class supports block operations.

Defined at line 58 of file ../../src/firmware/paver/partition-client.h

const VolumeConnector * connector ()

Defined at line 60 of file ../../src/firmware/paver/partition-client.h

void ~PartitionClient ()

Defined at line 62 of file ../../src/firmware/paver/partition-client.h