Return a contiguous block of memory of the specified size (in bytes), or 0 on failure.
Return the address of a contiguous block of memory of the specified size (in bytes) on success, according to the alignment strategy specified at construction. If size is 0 or the allocation request exceeds the remaining free memory space in the external buffer, no memory is allocated and 0 is returned.
address of a contiguous block of size bytes, or 0 on failure
| Name | Description |
|---|---|
| size | number of bytes to allocate |