Skip to main content

read

Function read 

Source
pub fn read(input: &mut impl Read, limit: NonZeroU32) -> Result<Option<Vec<u8>>>
Expand description

Read a complete tagged frame. EOF is clean only before its header.

ยงErrors

Returns a frame fault for empty, oversized or truncated frames; propagates other input, size-conversion and allocation failures.