class BlockBufferView
Defined at line 21 of file ../../zircon/system/ulib/storage/buffer/include/storage/buffer/block_buffer_view.h
A wrap-around view into a portion of a BlockBuffer, a block-aligned buffer.
Does not own the BlockBuffer. Caution must be taken when using BlockBufferView to not
outlive the source BlockBuffer object. This is akin to a "StringView" object for a string.
This class is movable and copyable.
This class is thread-compatible.
Public Methods
void BlockBufferView ()
Defined at line 23 of file ../../zircon/system/ulib/storage/buffer/include/storage/buffer/block_buffer_view.h
void BlockBufferView (BlockBuffer * buffer, size_t start, size_t length)
Defined at line 24 of file ../../zircon/system/ulib/storage/buffer/include/storage/buffer/block_buffer_view.h
BlockBufferView CreateSubView (size_t relative_start, size_t new_length)
Creates a new block buffer view within the current view.
|relative_start| is relative to |this.start()|.
|relative_start + new_length| must be less than or equal to |this.length()|.
Otherwise an assertion is fired.
Does not modify the original view.
Defined at line 35 of file ../../zircon/system/ulib/storage/buffer/include/storage/buffer/block_buffer_view.h
size_t start ()
Returns the start of the view, in blocks.
Defined at line 41 of file ../../zircon/system/ulib/storage/buffer/include/storage/buffer/block_buffer_view.h
size_t length ()
Returns the length of the view, in blocks.
Defined at line 43 of file ../../zircon/system/ulib/storage/buffer/include/storage/buffer/block_buffer_view.h
vmoid_t vmoid ()
Defined at line 44 of file ../../zircon/system/ulib/storage/buffer/include/storage/buffer/block_buffer_view.h
void * Data (size_t index)
Returns one block of data starting at block |index| within this view.
Defined at line 47 of file ../../zircon/system/ulib/storage/buffer/include/storage/buffer/block_buffer_view.h
uint32_t BlockSize ()
Defined at line 51 of file ../../zircon/system/ulib/storage/buffer/include/storage/buffer/block_buffer_view.h
const void * Data (size_t index)
Defined at line 53 of file ../../zircon/system/ulib/storage/buffer/include/storage/buffer/block_buffer_view.h