Allocate a block of memory. This will request a block of memory to be allocated an initialized. If the request block cannot be allocated, an error will be generated. The size must be greater than 0 or nothing will be allocated. The result is a handle to the block of memory which can then be used to access/change/read/write the block.
Params
size | number of bytes to allocate |
Returns
A memory handle if allocated or 0 if not.