allocate_page_aligned

Function allocate_page_aligned 

Source
pub fn allocate_page_aligned(size: usize) -> Vec<u8> 
Expand description

Allocate a page-aligned buffer for zero-copy I/O.

§Safety

This allocates raw memory. The returned buffer should be deallocated properly when no longer needed.