page_size

Function get_granularity

Source
pub fn get_granularity() -> usize
Expand description

This function retrieves the system’s memory allocation granularity.

§Example

extern crate page_size;
println!("{}", page_size::get_granularity());