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

Function encode_with_content

atomic-core/examples/graph_codec_lab/codec.rs:472–474  ·  view source on GitHub ↗
(value: &T, content: &[u8])

Source from the content-addressed store, hash-verified

470 encode_context(value, None, false)
471}
472pub fn encode_with_content<T: Serialize>(value: &T, content: &[u8]) -> Result<Vec<u8>> {
473 encode_context(value, Some(content), false)
474}
475pub fn encode_with_sequential_content<T: Serialize>(value: &T, content: &[u8]) -> Result<Vec<u8>> {
476 encode_context(value, Some(content), true)
477}

Calls 1

encode_contextFunction · 0.85