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

Method from_bytes

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

Deserialize from canonical bytes. Returns `None` on malformed input.

(bytes: &[u8])

Source from the content-addressed store, hash-verified

118
119 /// Deserialize from canonical bytes. Returns `None` on malformed input.
120 pub fn from_bytes(bytes: &[u8]) -> Option<Self> {
121 serde_json::from_slice(bytes).ok()
122 }
123
124 /// The parsed scope label.
125 pub fn scope_label(&self) -> ViewScopeLabel {

Callers

nothing calls this directly

Calls 1

okMethod · 0.45

Tested by

no test coverage detected