[#BUF_MEM_new_ex]
= BUF&lowbar;MEM&lowbar;new&lowbar;ex
:mrdocs:

Allocate a new BUF&lowbar;MEM with the given allocation flags&period;

== Synopsis

Declared in `&lt;openssl&sol;buffer&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BUF_MEM.adoc[BUF&lowbar;MEM]*
BUF&lowbar;MEM&lowbar;new&lowbar;ex(unsigned long flags);
----

== Return Value

New zero&hyphen;length BUF&lowbar;MEM, or NULL on allocation failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *flags*
| Allocation flags such as BUF&lowbar;MEM&lowbar;FLAG&lowbar;SECURE for secure&hyphen;heap `data&period;`
|===


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