MCPcopy Create free account
hub / github.com/dcSpark/cddl-codegen / parse_item

Function parse_item

static/emit_tests_encoding_fidelity.rs:66–117  ·  view source on GitHub ↗

Parse one item starting at `pos`, returning it and the position just past it. The input is a single well-formed definite-length CBOR value, so no indefinite framing is encountered here.

(b: &[u8], pos: usize)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

re_encodeFunction · 0.85
variantsFunction · 0.85

Calls 2

read_argFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected