Skip to main content

map_header

Function map_header 

Source
pub fn map_header(buf: &[u8], offset: usize) -> Option<(usize, usize)>
Expand description

Return the number of key-value pairs and the offset of the first pair, for the map starting at offset. Returns None if not a map.