Skip to main content

FREELIST_IDS_PER_TRUNK

Constant FREELIST_IDS_PER_TRUNK 

Source
pub const FREELIST_IDS_PER_TRUNK: usize = _; // 1_021usize
Expand description

Maximum number of free page IDs a single trunk page can hold. PAYLOAD_PER_PAGE is 4089; we reserve 2 bytes for the count and 4 bytes per ID, giving (4089 - 2) / 4 = 1021.