Skip to main content

read

Function read 

Source
pub fn read<'h, 'i>(
    interp: &'i mut Interp<'h>,
    input: &[u8],
    flags: i32,
) -> Result<Value, String>
Expand description

Read a value written by [write].

ยงErrors

Truncated input, an unknown tag, or a reference when references were not allowed. A corrupt buffer must never be able to make the engine read past its end, which is why every field is bounds-checked here rather than by the caller.