[#BloombergLP-bdlde-Base64Decoder-convert-0c]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/Base64Decoder.adoc[Base64Decoder]::xref:BloombergLP/bdlde/Base64Decoder/convert-0e.adoc[convert]&lt;char*, char const*&gt;
:relfileprefix: ../../../
:mrdocs:

Decode Base64 input for `char &ast;` &sol; `const char &ast;` iterators&period;

== Synopsis

Declared in `&lt;bdlde&lowbar;base64decoder&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
int
xref:BloombergLP/bdlde/Base64Decoder/convert-0e.adoc[convert]&lt;char*, char const*&gt;(
    char* out,
    int* numOut,
    int* numIn,
    char const* begin,
    char const* end,
    int maxNumOut = &hyphen;1);
----

== Description

Specialization of `convert` optimized for contiguous `char` buffers&period; See the primary `convert` template for full contract details&period;

== Return Value

non&hyphen;negative value on success, &hyphen;1 on input error, and &hyphen;2 if `endConvert` has already been called without an intervening `resetState`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *out*
| destination for decoded output bytes
| *numOut*
| receives the number of bytes written
| *numIn*
| receives the number of input bytes consumed
| *begin*
| beginning of the Base64 input range
| *end*
| end of the Base64 input range (exclusive)
| *maxNumOut*
| maximum bytes to write&semi; negative means no limit
|===


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