Skip to main content

PAGE_HEADER_SIZE

Constant PAGE_HEADER_SIZE 

Source
pub const PAGE_HEADER_SIZE: usize = 32;
Expand description

Page header size in bytes

Layout:

  • page_id: 8 bytes (u64)
  • next_page_id: 8 bytes (u64, overflow link)
  • node_count: 2 bytes (u16)
  • used_bytes: 2 bytes (u16, actual bytes used in data region)
  • base_id: 8 bytes (i64, for delta encoding)
  • checksum: 4 bytes (u32)
  • reserved: 0 bytes (header exactly 32 bytes)