[#BIO_new_mem_buf] = BIO_new_mem_buf :mrdocs: Create a read‐only memory BIO that reads from an existing buffer. == Synopsis Declared in `<openssl/bio.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BIO.adoc[BIO]* BIO_new_mem_buf( void const* buf, int len); ---- == Return Value New memory BIO, or NULL on error; free with BIO_free(). == Parameters [cols="1,4"] |=== | Name| Description | *buf* | Pointer to `len` bytes of data (not copied; must remain valid for the BIO's life). | *len* | Length of `buf` in bytes, or ‐1 to use strlen(`buf).` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#