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

Function decode

atomic-repository/src/repository/remote_cache.rs:85–87  ·  view source on GitHub ↗
(bytes: &'a [u8])

Source from the content-addressed store, hash-verified

83}
84
85fn decode<'a, T: Deserialize<'a>>(bytes: &'a [u8]) -> Result<T, RepositoryError> {
86 postcard::from_bytes(bytes).map_err(|e| RepositoryError::Serialization(e.to_string()))
87}
88
89impl SandboxSkeleton {
90 /// The skeleton as bytes ([`SANDBOX_SKELETON_SCHEMA`]): what a transport

Calls

no outgoing calls