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

Method get_binding_bytes

atomic-core/src/pristine/txn/write/bindings.rs:11–15  ·  view source on GitHub ↗
(&self, id: &[u8; 32])

Source from the content-addressed store, hash-verified

9
10impl BindingTxnT for WriteTxn<'_> {
11 fn get_binding_bytes(&self, id: &[u8; 32]) -> PristineResult<Option<Vec<u8>>> {
12 let table = self.txn.open_table(BINDINGS)?;
13 let value = table.get(id)?.map(|guard| guard.value().to_vec());
14 Ok(value)
15 }
16
17 fn iter_binding_ids(&self) -> PristineResult<Vec<[u8; 32]>> {
18 let table = self.txn.open_table(BINDINGS)?;

Callers

nothing calls this directly

Calls 2

valueMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected