[#ASN1_item_i2d_mem_bio] = ASN1_item_i2d_mem_bio :mrdocs: Encode an ASN.1 value described by `it` into a newly allocated memory BIO. == Synopsis Declared in `<openssl/asn1.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BIO.adoc[BIO]* ASN1_item_i2d_mem_bio( xref:ASN1_ITEM.adoc[ASN1_ITEM] const* it, xref:ASN1_VALUE.adoc[ASN1_VALUE] const* val); ---- == Return Value Memory BIO holding the DER encoding, or NULL on error; free with BIO_free(). == Parameters [cols="1,4"] |=== | Name| Description | *it* | ASN.1 item descriptor for the type of `val.` | *val* | Value to encode (may be NULL for some optional types). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#