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

Method position_inode

atomic-core/src/pristine/txn/write/tree.rs:45–53  ·  view source on GitHub ↗
(&self, pos: Position<NodeId>)

Source from the content-addressed store, hash-verified

43 }
44
45 fn position_inode(&self, pos: Position<NodeId>) -> PristineResult<Option<Inode>> {
46 let table = self.txn.open_table(REV_INODES)?;
47 let key = encode_position(pos.change.get(), pos.pos.get());
48 let result = table.get(&key)?;
49 match result {
50 Some(value) => Ok(Some(Inode::new(value.value()))),
51 None => Ok(None),
52 }
53 }
54
55 fn iter_tree(
56 &self,

Callers

nothing calls this directly

Calls 2

encode_positionFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected