Skip to main content

decode_ref

Function decode_ref 

Source
pub fn decode_ref<'a>(
    bytes: &'a [u8],
    arena: &'a Bump,
) -> Result<ValueRef<'a>, DecodeError>
Expand description

Reads the binary form borrowed: every string points into bytes, lists and maps go in arena — nothing is copied. What a schema reads fastest (crate::read_bytes).