Skip to main content

peek_version

Function peek_version 

Source
pub fn peek_version(magic: &[u8; 5], buf: &[u8]) -> Option<u8>
Expand description

Read the version byte without decoding the body. Returns None if the buffer is too short or the magic does not match.