Function pageSize [src]
If the page size is comptime-known, return value is comptime.
Otherwise, calls std.options.queryPageSize which by default queries the
host operating system at runtime.
Prototype
pub inline fn pageSize() usize
Example
test pageSize {
assert(std.math.isPowerOfTwo(pageSize()));
}
Source
pub inline fn pageSize() usize {
if (page_size_min == page_size_max) return page_size_min;
return std.options.queryPageSize();
}