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

Method next_inode_adj

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

Source from the content-addressed store, hash-verified

2400 }
2401
2402 fn next_inode_adj(
2403 &self,
2404 adj: &mut crate::pristine::InodeAdjState,
2405 ) -> Option<Result<SerializedGraphEdge, Self::InodeError>> {
2406 // Edges were pre-loaded in init_inode_adj, just iterate
2407 if adj.is_exhausted() {
2408 return None;
2409 }
2410 if adj.position < adj.edges.len() {
2411 let edge = adj.edges[adj.position];
2412 adj.advance();
2413 Some(Ok(edge))
2414 } else {
2415 adj.mark_exhausted();
2416 None
2417 }
2418 }
2419
2420 fn find_block_in_inode(
2421 &self,

Calls 4

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