class AllocatedExtentIterator

Defined at line 23 of file ../../src/storage/blobfs/iterator/allocated_extent_iterator.h

Allows traversing a collection of extents from an already-allocated node. Partially validates

containers as they are traversed.

This iterator is useful for accessing blobs which have already been written to disk.

Public Methods

AllocatedExtentIterator & operator= (const AllocatedExtentIterator & )

Defined at line 25 of file ../../src/storage/blobfs/iterator/allocated_extent_iterator.h

void AllocatedExtentIterator (const AllocatedExtentIterator & )

Defined at line 26 of file ../../src/storage/blobfs/iterator/allocated_extent_iterator.h

zx::result<AllocatedExtentIterator> Create (NodeFinder * finder, uint32_t node_index)

Creates an AllocatedExtentIterator. Returns an error if |node_index| isn't a valid index in

|finder|.

Defined at line 26 of file ../../src/storage/blobfs/iterator/allocated_extent_iterator.cc

void AllocatedExtentIterator (AllocatedExtentIterator && )

Defined at line 27 of file ../../src/storage/blobfs/iterator/allocated_extent_iterator.h

AllocatedExtentIterator & operator= (AllocatedExtentIterator && )

Defined at line 28 of file ../../src/storage/blobfs/iterator/allocated_extent_iterator.h

bool Done ()

ExtentIterator interface.

Defined at line 39 of file ../../src/storage/blobfs/iterator/allocated_extent_iterator.cc

zx::result<const Extent *> Next ()

Defined at line 41 of file ../../src/storage/blobfs/iterator/allocated_extent_iterator.cc

const NodePrelude & node_prelude ()

Returns the prelude for the current node.

Defined at line 51 of file ../../src/storage/blobfs/iterator/allocated_extent_iterator.h

uint64_t BlockIndex ()

Defined at line 62 of file ../../src/storage/blobfs/iterator/allocated_extent_iterator.cc

uint32_t ExtentIndex ()

Returns the number of extents we've iterated past already.

Defined at line 64 of file ../../src/storage/blobfs/iterator/allocated_extent_iterator.cc

uint32_t NodeIndex ()

Returns the node we're about to read from on the upcoming call to |Next|.

It is unsafe to call this method if |Done()| is true.

Defined at line 68 of file ../../src/storage/blobfs/iterator/allocated_extent_iterator.cc

zx_status_t VerifyIteration (NodeFinder * finder, uint32_t node_index, Inode * inode)

Returns |ZX_OK| when the node list can be safely traversed.

Defined at line 73 of file ../../src/storage/blobfs/iterator/allocated_extent_iterator.cc