class BlockIterator
Defined at line 20 of file ../../src/storage/blobfs/iterator/block_iterator.h
Wraps an ExtentIterator to allow traversal of a node in block-order rather than extent-order.
Public Methods
void BlockIterator (std::unique_ptr<ExtentIterator> iterator)
Defined at line 21 of file ../../src/storage/blobfs/iterator/block_iterator.cc
void BlockIterator (const BlockIterator & )
Defined at line 23 of file ../../src/storage/blobfs/iterator/block_iterator.h
bool Done ()
Returns true if there are no more blocks to be consumed.
Defined at line 24 of file ../../src/storage/blobfs/iterator/block_iterator.cc
BlockIterator & operator= (const BlockIterator & )
Defined at line 24 of file ../../src/storage/blobfs/iterator/block_iterator.h
void BlockIterator (BlockIterator && )
Defined at line 25 of file ../../src/storage/blobfs/iterator/block_iterator.h
uint64_t BlockIndex ()
Returns the number of blocks we've iterated past in total.
Defined at line 26 of file ../../src/storage/blobfs/iterator/block_iterator.cc
BlockIterator & operator= (BlockIterator && )
Defined at line 26 of file ../../src/storage/blobfs/iterator/block_iterator.h
zx_status_t Next (uint64_t length, uint64_t * out_length, uint64_t * out_start)
Acquires up to |length| additional blocks.
Postcondition: |out_length|
<
= |length|.
Returns the actual number of blocks available as |out_length|, starting at data block offset
|out_start|.
Defined at line 28 of file ../../src/storage/blobfs/iterator/block_iterator.cc