[#LockedPool-alloc] = xref:LockedPool.adoc[LockedPool]::alloc :relfileprefix: ../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void* alloc(size_t size); ---- == Return Value Pointer to the allocated memory, or nullptr on failure. == Parameters [cols="1,4"] |=== | Name| Description | *size* | Number of bytes to allocate. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#