MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / next_inode_adj

Method next_inode_adj

atomic-core/src/pristine/txn/read.rs:1683–1699  ·  view source on GitHub ↗
(
        &self,
        adj: &mut crate::pristine::InodeAdjState,
    )

Source from the content-addressed store, hash-verified

1681 }
1682
1683 fn next_inode_adj(
1684 &self,
1685 adj: &mut crate::pristine::InodeAdjState,
1686 ) -> Option<Result<SerializedGraphEdge, Self::InodeError>> {
1687 // Edges were pre-loaded in init_inode_adj, just iterate
1688 if adj.is_exhausted() {
1689 return None;
1690 }
1691 if adj.position < adj.edges.len() {
1692 let edge = adj.edges[adj.position];
1693 adj.advance();
1694 Some(Ok(edge))
1695 } else {
1696 adj.mark_exhausted();
1697 None
1698 }
1699 }
1700
1701 fn find_block_in_inode(
1702 &self,

Calls 4

is_exhaustedMethod · 0.80
mark_exhaustedMethod · 0.80
lenMethod · 0.45
advanceMethod · 0.45

Tested by

no test coverage detected