Function string_to_ptr

Source
pub unsafe fn string_to_ptr(s: &String) -> (u32, u32)
Expand description

Returns a pointer and size pair for the given string in a way compatible with WebAssembly numeric types.

Note: This doesn’t change the ownership of the String. To intentionally leak it, use std::mem::forget on the input after calling this.