Records

Functions

  • zx_status_t ReadWriteBlocks (fidl::UnownedClientEnd<fuchsia_storage_block::Block> device, void * buffer, size_t buffer_length, size_t offset, bool write)

    Defined at line 149 of file ../../src/storage/lib/block_client/cpp/remote_block_device.cc

  • zx_status_t SingleReadBytes (fidl::UnownedClientEnd<fuchsia_storage_block::Block> device, void * buffer, size_t buffer_size, size_t offset)

    Helper functions for performing single reads and writes from a block. These functions are

    provided as a drop in replacement for the discontinued pread and pwrite posix style calls.

    buffer_size and offset are considered sizes in bytes, although reading and writing can only be

    done in whole block increments. buffer must be pre-allocated to the correct size. These

    functions are not performant; use the `RemoteBlockDevice` API above if performance matters.

    Defined at line 251 of file ../../src/storage/lib/block_client/cpp/remote_block_device.cc

  • zx_status_t SingleWriteBytes (fidl::UnownedClientEnd<fuchsia_storage_block::Block> devicevoid * buffersize_t buffer_sizesize_t offset)

    Defined at line 256 of file ../../src/storage/lib/block_client/cpp/remote_block_device.cc