pub fn unwrap_version(data: &[u8]) -> (u64, &[u8])
Expand description

Decode a payload that may or may not contain a version header. If no header is found, the result is (0, data). If a header is found, the parsed version number is returned along with a slice reference containing the previously-wrapped data.