[#Arena-alloc]
= xref:Arena.adoc[Arena]::alloc
:relfileprefix: ../
:mrdocs:

Allocate size bytes from this arena&period; Returns pointer on success, or 0 if memory is full or the application tried to allocate 0 bytes&period;

== Synopsis

Declared in `&lt;support&sol;lockedpool&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void*
alloc(size&lowbar;t size);
----

== Return Value

Pointer to the allocated memory, or nullptr on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *size*
| Number of bytes to allocate&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
