Skip to main content

read_frame

Function read_frame 

Source
pub fn read_frame<R: Read>(r: R) -> Result<Option<Vec<u8>>>
Expand description

Length-prefixed stream framing (spec §3): 4-byte BE length + payload. Reads one framed message; returns Ok(None) on EOF at a frame boundary.