Skip to main content

extract_version

Function extract_version 

Source
pub fn extract_version(data: &[u8]) -> Option<u8>
Expand description

Extracts the version byte from the header Returns None if the data doesn’t have a valid magic header