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

Method get_crdt_inode_trunk

atomic-core/src/pristine/txn/write/mod.rs:2299–2303  ·  view source on GitHub ↗
(&self, inode: u64)

Source from the content-addressed store, hash-verified

2297 }
2298
2299 fn get_crdt_inode_trunk(&self, inode: u64) -> PristineResult<Option<[u8; 12]>> {
2300 let table = self.txn.open_table(INODE_TRUNK)?;
2301 let result = table.get(inode)?.map(|v| *v.value());
2302 Ok(result)
2303 }
2304
2305 fn get_crdt_branch(&self, key: &[u8; 12]) -> PristineResult<Option<SerializedBranch>> {
2306 let table = self.txn.open_table(BRANCHES)?;

Callers

nothing calls this directly

Calls 2

valueMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected