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

Method encode

atomic-objects/src/sync.rs:190–192  ·  view source on GitHub ↗

Encode to a compressed wire body. See [`encode`].

(&self)

Source from the content-addressed store, hash-verified

188
189 /// Encode to a compressed wire body. See [`encode`].
190 pub fn encode(&self) -> Result<Vec<u8>, SyncError> {
191 encode(self)
192 }
193
194 /// Decode from a compressed wire body, bounded by [`DEFAULT_MAX_DECOMPRESSED`].
195 pub fn decode(bytes: &[u8]) -> Result<Self, SyncError> {

Callers 15

mint_tokenFunction · 0.45
runMethod · 0.45
executeMethod · 0.45
spawn_sync_serverFunction · 0.45
requireMethod · 0.45
sync_pushMethod · 0.45
sync_pullMethod · 0.45
to_base32Method · 0.45
to_base32Method · 0.45
to_base32Method · 0.45
save_secret_keyMethod · 0.45

Calls 1

encodeFunction · 0.85