pub fn check( stream: &mut BytesMut, max_packet_size: usize, ) -> Result<FixedHeader, Error>
Checks if the stream has enough bytes to frame a packet and returns fixed header