pub unsafe fn pin_memory(data: &[u8]) -> *mut u8
Manually allocates and pins raw memory layout on the heap. Note: You MUST free it using unpin_memory to prevent memory leaks.