Namespaces

Enumerations

enum class WriteBytesMode : uint32_t
Name Value Comments
kReadModifyEraseWrite 1u

In this mode, WriteBytes() performs the following steps:
1. Reads data from the minimum block range that covers the specified write range into a
buffer. (i.e. if 1 block contains 4 pages, then the minimum block range that covers page
range [3, 6] is block range [0, 1])
2. Updates the buffer with input write data,
3. Erase the storage in the minimum block range.
4. Write the updated buffer into the minimum block range.

This mode only changes data in the specified write range on the storage, data out of the

kEraseWrite 2u

In this mode, WriteBytes() performs the following steps:
1. Erase the minimum block range that covers the specified write range.
2. Write new input data on the specified write range.

This mode changes data in the minmum block range w.r.t the specified write range on the
storage. Storage out of the specified write range will be in an erased state and available
for write in the future.

Defined at line 17 of file fidling/gen/sdk/fidl/fuchsia.hardware.skipblock/fuchsia.hardware.skipblock/cpp/fidl/fuchsia.hardware.skipblock/cpp/common_types.h

Records