Skip to main content

PAGE

Constant PAGE 

Source
pub const PAGE: usize = 4096;
Expand description

The system page size this module assumes for rounding.

It is a constant because the geometry is: PAGES_PER_SPAN is SPAN_BYTES / PAGE, and SpanMeta::discarded is exactly a u16 for the sixteen pages that gives. What is NOT safe is assuming the system agrees — see page_size_matches.