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

Method next_inode_adj

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

Source from the content-addressed store, hash-verified

1744 }
1745
1746 fn next_inode_adj(
1747 &self,
1748 adj: &mut crate::pristine::InodeAdjState,
1749 ) -> Option<Result<SerializedGraphEdge, Self::InodeError>> {
1750 // Edges were pre-loaded in init_inode_adj, just iterate
1751 if adj.is_exhausted() {
1752 return None;
1753 }
1754 if adj.position < adj.edges.len() {
1755 let edge = adj.edges[adj.position];
1756 adj.advance();
1757 Some(Ok(edge))
1758 } else {
1759 adj.mark_exhausted();
1760 None
1761 }
1762 }
1763
1764 fn find_block_in_inode(
1765 &self,

Callers 5

select_linear_successorFunction · 0.45
import_seed_is_deadFunction · 0.45

Calls 4

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

Tested by

no test coverage detected