pub fn read_frame_bytes(r: &mut impl Read) -> Result<Option<Vec<u8>>>
The next frame’s bytes; None where the stream ends between frames.
None
The reader’s I/O error; io::ErrorKind::InvalidData for a length over MAX_FRAME.
io::ErrorKind::InvalidData
MAX_FRAME