[][src]Function rpmalloc_sys::rpposix_memalign

pub unsafe extern "C" fn rpposix_memalign(
    memptr: *mut *mut c_void,
    alignment: size_t,
    size: size_t
) -> c_int

Allocate a memory block of at least the given size and alignment. Alignment must be a power of two and a multiple of sizeof(void*), and should ideally be less than memory page size. A caveat of rpmalloc internals is that this must also be strictly less than the span size (default 64KiB)