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

Method get_internal

atomic-core/src/pristine/txn/read.rs:232–239  ·  view source on GitHub ↗
(&self, hash: &Hash)

Source from the content-addressed store, hash-verified

230 }
231
232 fn get_internal(&self, hash: &Hash) -> PristineResult<Option<NodeId>> {
233 let table = self.txn.open_table(INTERNAL)?;
234 let result = table.get(hash.as_bytes())?;
235 match result {
236 Some(value) => Ok(Some(NodeId::new(value.value()))),
237 None => Ok(None),
238 }
239 }
240
241 fn list_registered_changes(&self) -> PristineResult<Vec<(NodeId, Hash)>> {
242 let external = self.txn.open_table(EXTERNAL)?;

Callers 5

index_changeFunction · 0.45
internalMethod · 0.45
depends_onMethod · 0.45
causal_ancestorsFunction · 0.45

Calls 6

valueMethod · 0.80
lockMethod · 0.80
getMethod · 0.65
as_bytesMethod · 0.45
unwrapMethod · 0.45
insertMethod · 0.45