Higher-level memory management utilities built on top of std.alloc.
Allocates size bytes of memory. Delegates to std.alloc.alloc.
Frees a memory region at ptr of the given size. Delegates to std.alloc.free.
Resizes a memory region from old_size to new_size. Delegates to std.alloc.realloc.
load std.mem
let buf = mem.alloc_bytes(256)
mem.free_bytes(buf, 256)