Skip to main content

read_frame

Function read_frame 

Source
pub fn read_frame<R: Read>(reader: &mut R) -> Result<Vec<u8>, FramingError>
Expand description

Read one v1 frame from reader with the default 16 MiB cap.

Equivalent to read_frame_with_cap(reader, MAX_FRAME_BYTES). Use read_frame_with_cap with MAX_HELLO_BYTES for the initial Hello envelope.

ยงErrors