A reasonably safe implementation of alloc.Memory allocated by this function must be freed by this crate’s free.Caller guarantees free is called before the returned pointer goes out of scope.
A reasonably safe implementation of free.This function will free a pointer allocated by alloc.Caller guarantees that the provided pointer was allocated by this crate’s alloc function.Providing NULL is safe and will return Err(DeallocationError::NullPtr).Providing any other pointer causes undefined behaviour.