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

Method to_bytes

atomic-repository/src/repository/remote_cache.rs:92–94  ·  view source on GitHub ↗

The skeleton as bytes ([`SANDBOX_SKELETON_SCHEMA`]): what a transport carries and [`SandboxSkeleton::from_bytes`] reads back.

(&self)

Source from the content-addressed store, hash-verified

90 /// The skeleton as bytes ([`SANDBOX_SKELETON_SCHEMA`]): what a transport
91 /// carries and [`SandboxSkeleton::from_bytes`] reads back.
92 pub fn to_bytes(&self) -> Result<Vec<u8>, RepositoryError> {
93 encode(self)
94 }
95
96 pub fn from_bytes(bytes: &[u8]) -> Result<Self, RepositoryError> {
97 decode(bytes)

Calls 1

encodeFunction · 0.70