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

Method position_inode

atomic-core/src/pristine/txn/read.rs:491–499  ·  view source on GitHub ↗
(&self, pos: Position<NodeId>)

Source from the content-addressed store, hash-verified

489 }
490
491 fn position_inode(&self, pos: Position<NodeId>) -> PristineResult<Option<Inode>> {
492 let table = self.txn.open_table(REV_INODES)?;
493 let key = encode_position(pos.change.get(), pos.pos.get());
494 let result = table.get(&key)?;
495 match result {
496 Some(value) => Ok(Some(Inode::new(value.value()))),
497 None => Ok(None),
498 }
499 }
500
501 fn iter_tree(
502 &self,

Callers

nothing calls this directly

Calls 2

encode_positionFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected