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

Function decode_with_content

atomic-core/examples/graph_codec_lab/codec.rs:518–520  ·  view source on GitHub ↗
(encoded: &[u8], content: &[u8])

Source from the content-addressed store, hash-verified

516 decode_context(encoded, None)
517}
518pub fn decode_with_content(encoded: &[u8], content: &[u8]) -> Result<Vec<u8>> {
519 decode_context(encoded, Some(content))
520}
521fn decode_context(encoded: &[u8], content: Option<&[u8]>) -> Result<Vec<u8>> {
522 let data = encoded
523 .strip_prefix(MAGIC)

Callers 1

measureFunction · 0.85

Calls 1

decode_contextFunction · 0.85

Tested by

no test coverage detected