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

Method position_inode

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

Source from the content-addressed store, hash-verified

444 }
445
446 fn position_inode(&self, pos: Position<NodeId>) -> PristineResult<Option<Inode>> {
447 let table = self.txn.open_table(REV_INODES)?;
448 let key = encode_position(pos.change.get(), pos.pos.get());
449 let result = table.get(&key)?;
450 match result {
451 Some(value) => Ok(Some(Inode::new(value.value()))),
452 None => Ok(None),
453 }
454 }
455
456 fn iter_tree(
457 &self,

Callers

nothing calls this directly

Calls 2

encode_positionFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected