Function vmap::os::map_ring

source ·
pub fn map_ring(len: usize) -> Result<*mut u8>
Expand description

Creates an anonymous circular allocation.

The length is the size of the sequential range, and the offset of len+1 refers to the same memory location at offset 0. The circle continues to up through the offset of 2*len - 1.