class BlockBuffer
Defined at line 21 of file ../../zircon/system/ulib/storage/buffer/include/storage/buffer/block_buffer.h
Interface for a block-aligned buffer.
This class should be thread-compatible.
Public Methods
size_t capacity ()
Returns the total amount of blocks which the buffer handles.
uint32_t BlockSize ()
Returns the size of each data block handled by this buffer.
vmoid_t vmoid ()
Returns the vmoid of the underlying BlockBuffer, if one exists.
zx_handle_t Vmo ()
Returns a handle to the underlying VMO, if one exists. Ownership of the VMO
is not being transferred to the caller.
void * Data (size_t index)
Returns data starting at block |index| in the buffer.
const void * Data (size_t index)
Returns data starting at block |index| in the buffer.
zx_status_t Zero (size_t index, size_t count)
Zero |count| blocks from |index|. Subclasses might override to provide a more efficient
implementation.
Defined at line 14 of file ../../zircon/system/ulib/storage/buffer/block_buffer.cc
void ~BlockBuffer ()
Defined at line 23 of file ../../zircon/system/ulib/storage/buffer/include/storage/buffer/block_buffer.h