Skip to main content

parse_version

Function parse_version 

Source
pub fn parse_version(value: &[u8]) -> Option<(u32, u32, u32)>
Expand description

Parse a version value: three little-endian u32s (major, minor, patch). None when the value is shorter than 12 bytes (trailing bytes beyond 12 are tolerated, matching the layer’s len < 12 check).