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

Function bytes

atomic-core/src/change/format_v3/graph_fields/decode.rs:27–31  ·  view source on GitHub ↗
(input: &mut &'a [u8])

Source from the content-addressed store, hash-verified

25 constant: Option<u64>,
26}
27fn bytes<'a>(input: &mut &'a [u8]) -> FormatResult<&'a [u8]> {
28 let (v, rest) = postcard::take_from_bytes(input)?;
29 *input = rest;
30 Ok(v)
31}
32fn text<'a>(input: &mut &'a [u8]) -> FormatResult<&'a str> {
33 let (v, rest) = postcard::take_from_bytes(input)?;
34 *input = rest;

Callers 4

measure_turnFunction · 0.85
verifyFunction · 0.85
source_fingerprintFunction · 0.85
parseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected