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

Method to_bytes

atomic-core/src/change/session.rs:136–138  ·  view source on GitHub ↗

Serialize to a compact binary blob via postcard.

(&self)

Source from the content-addressed store, hash-verified

134impl IntentEntry {
135 /// Serialize to a compact binary blob via postcard.
136 pub fn to_bytes(&self) -> Vec<u8> {
137 postcard::to_allocvec(self).expect("IntentEntry serialization")
138 }
139
140 /// Deserialize from a postcard binary blob.
141 pub fn from_bytes(bytes: &[u8]) -> Result<Self, postcard::Error> {

Calls

no outgoing calls