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

Method position_inode

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

Source from the content-addressed store, hash-verified

815 }
816
817 fn position_inode(&self, pos: Position<NodeId>) -> PristineResult<Option<Inode>> {
818 let table = self.txn.open_table(REV_INODES)?;
819 let key = encode_position(pos.change.get(), pos.pos.get());
820 let result = table.get(&key)?;
821 match result {
822 Some(value) => Ok(Some(Inode::new(value.value()))),
823 None => Ok(None),
824 }
825 }
826
827 fn snapshot_inodes(&self) -> PristineResult<Vec<(Inode, Position<NodeId>)>> {
828 let table = self.txn.open_table(INODES)?;

Callers

nothing calls this directly

Calls 3

encode_positionFunction · 0.85
valueMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected