Skip to main content

format_version

Function format_version 

Source
pub fn format_version(b: &[u8]) -> u16
Expand description

The disk-format stamp a page image carries, read straight from bytes 18-19. Public so a test, a repair tool or an inspector can ask what a page claims WITHOUT opening it – PageRef::open refuses anything but FORMAT_VERSION, so by then the answer is already known.