Skip to main content

classify

Function classify 

Source
pub fn classify(pgno: u32, page: &[u8]) -> PageClass
Expand description

Classify a page from its raw bytes using the one-byte B-tree page type at the header offset (0x02 interior index, 0x05 interior table, 0x0a leaf index, 0x0d leaf table). Page 1 carries the 100-byte database header before its B-tree header. Any other type byte is treated as a non-B-tree page.