pub fn read_frame(reader: &mut impl Read, max_bytes: u32) -> Result<FrameRead>
Reads one length-prefixed frame, checking the declared length against max_bytes before allocating.
max_bytes