Allocate size bytes from this arena. Returns pointer on success, or 0 if memory is full or the application tried to allocate 0 bytes.
Declared in <support/lockedpool.h>
void*
alloc(size_t size);
Pointer to the allocated memory, or nullptr on failure.
| Name | Description |
|---|---|
| size | Number of bytes to allocate. |