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

Method content_key

atomic-objects/src/view_snapshot.rs:115–117  ·  view source on GitHub ↗

The content address (hex Blake3) of the canonical bytes — this object's key in the object store and the value a `views/{name}` ref points at.

(&self)

Source from the content-addressed store, hash-verified

113 /// The content address (hex Blake3) of the canonical bytes — this object's
114 /// key in the object store and the value a `views/{name}` ref points at.
115 pub fn content_key(&self) -> crate::ObjectKey {
116 crate::content_key(&self.to_canonical_bytes())
117 }
118
119 /// Deserialize from canonical bytes. Returns `None` on malformed input.
120 pub fn from_bytes(bytes: &[u8]) -> Option<Self> {

Callers 2

run_asyncMethod · 0.80
agent_push_packFunction · 0.80

Calls 2

content_keyFunction · 0.85
to_canonical_bytesMethod · 0.80

Tested by 1

agent_push_packFunction · 0.64