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

Method next_inode_adj

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

Source from the content-addressed store, hash-verified

1570 }
1571
1572 fn next_inode_adj(
1573 &self,
1574 adj: &mut crate::pristine::InodeAdjState,
1575 ) -> Option<Result<SerializedGraphEdge, Self::InodeError>> {
1576 // Edges were pre-loaded in init_inode_adj, just iterate
1577 if adj.is_exhausted() {
1578 return None;
1579 }
1580 if adj.position < adj.edges.len() {
1581 let edge = adj.edges[adj.position];
1582 adj.advance();
1583 Some(Ok(edge))
1584 } else {
1585 adj.mark_exhausted();
1586 None
1587 }
1588 }
1589
1590 fn find_block_in_inode(
1591 &self,

Calls 4

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

Tested by

no test coverage detected