[#OSSL_DECODER_export]
= OSSL&lowbar;DECODER&lowbar;export
:mrdocs:

Export a reference from a decoder instance via a provider export callback&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;DECODER&lowbar;export(
    xref:OSSL_DECODER_INSTANCE.adoc[OSSL&lowbar;DECODER&lowbar;INSTANCE]* decoder&lowbar;inst,
    void* reference,
    size&lowbar;t reference&lowbar;sz,
    xref:OSSL_CALLBACK.adoc[OSSL&lowbar;CALLBACK]* export&lowbar;cb,
    void* export&lowbar;cbarg);
----

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *decoder&lowbar;inst*
| Decoder instance that produced `reference&period;`
| *reference*
| Reference bytes to export&period;
| *reference&lowbar;sz*
| Size of `reference` in bytes&period;
| *export&lowbar;cb*
| Provider export callback&period;
| *export&lowbar;cbarg*
| Opaque argument passed to `export&lowbar;cb&period;`
|===


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