Skip to main content

pin_memory

Function pin_memory 

Source
pub unsafe fn pin_memory(data: &[u8]) -> *mut u8
Expand description

Manually allocates and pins raw memory layout on the heap. Note: You MUST free it using unpin_memory to prevent memory leaks.