pub fn destroy(src: *mut u8, length: usize) -> Result<()>Expand description
deallocates a raw pointer (i.e.: *mut u8) of N contiguous bytes where N=length
See utf8_rune::pointer::create for details.
Example
use utf8_rune::pointer::{self, from_display};
let (ptr, length) = from_display("bytes").unwrap();
pointer::destroy(ptr, length).unwrap();