Skip to main content

manage_os_memory

Function manage_os_memory 

Source
pub unsafe fn manage_os_memory(
    start: *mut u8,
    size: usize,
    is_committed: bool,
    is_pinned: bool,
    is_zero: bool,
    numa_node: i32,
    exclusive: bool,
) -> Result<ArenaId, ArenaError>
Expand description

Manage an existing memory region as an arena.

ยงSafety

start must point to at least size valid bytes that outlive the arena.