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

Method from_bytes

atomic-repository/src/repository/project_tree.rs:43–45  ·  view source on GitHub ↗
(bytes: &[u8])

Source from the content-addressed store, hash-verified

41 }
42
43 pub fn from_bytes(bytes: &[u8]) -> Result<Self, ProjectTreeError> {
44 Self::new(bytes.to_vec())
45 }
46
47 pub fn as_bytes(&self) -> &[u8] {
48 &self.0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected