Skip to main content

probe

Function probe 

Source
pub fn probe(bytes: &[u8]) -> SidecarShape
Expand description

Classify sidecar bytes by their discriminating key alone.

Decodes the outer CBOR value once and inspects only the map’s keys; every value except the one at integer key 0 is left unexamined. Never fails: undecodable bytes are SidecarShape::Unknown, and so is a 0 key whose value is not a u16.