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