/aligned-alloc

Easily allocate page aligned memory.

Primary LanguageRust

aligned-alloc

Example

let memory: Box<[u8], _> =
            unsafe { Box::new_zeroed_slice_in(100, AlignedAlloc::<4096>).assume_init() };