Function gstd::util::to_leak_ptr

source ·
pub fn to_leak_ptr(bytes: impl Into<Vec<u8>>) -> *mut [i32; 2]
Expand description

Convert a given vector to a raw pointer and prevent its deallocating.

It operates similarly to to_wasm_ptr except that it consumes the input and make it leak by calling core::mem::forget.