Skip to main content

read_frame

Function read_frame 

Source
pub fn read_frame(reader: &mut impl Read, max_bytes: u32) -> Result<FrameRead>
Expand description

Reads one length-prefixed frame, checking the declared length against max_bytes before allocating.