[#BUF_MEM_grow] = BUF_MEM_grow :mrdocs: Grow or shrink a BUF_MEM so its valid length is `len.` == Synopsis Declared in `<openssl/buffer.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- size_t BUF_MEM_grow( xref:BUF_MEM.adoc[BUF_MEM]* str, size_t len); ---- == Description Newly allocated capacity beyond the previous length is left uninitialized; use BUF_MEM_grow_clean() when cleared growth is required. == Return Value New length on success, or 0 on allocation failure. == Parameters [cols="1,4"] |=== | Name| Description | *str* | Buffer to resize. | *len* | Desired length in bytes; expands capacity when needed. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#