Allocates size bytes with the context allocator and returns a pointer to them. The bytes are not cleared. Give them
back with free. Prefer New or NewArray when you know the type.
alloc :: (size: s64) -> *void
Parameters
- size: s64
Returns
- *void
memory := cast(*u8) alloc(16);
defer free(memory);
memory[0] = 7;
assert(memory[0] == 7);