syscall: ashet.process.memory.allocate
Documentation
Allocates a chunk of memory from the process heap.
Inputs
size: usizeThe size of the allocated memory block in bytes.
Note:
Passing 0 will never succeed.
ptr_align: u8The alignment
Outputs
memory: [*]u8A non-
nullpointer that points to exactly @ref size bytes.Note:
In practise, this might point to more than @ref size bytes, but the code must not assume *any* excess bytes may exist.
Errors
SystemResourceIs returned when the system is out of memory.