pub fn create(length: usize) -> Result<*mut u8>Expand description
allocates a new, zero-initialized, raw pointer (i.e.: *mut u8) of N contiguous bytes where N=length
Example
use utf8_rune::pointer::{self, from_slice};
let (ptr, length) = from_slice(b"bytes").unwrap();
pointer::destroy(ptr, length).unwrap();