[#BloombergLP-bdlde-Base64Encoder-2constructor-05]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/Base64Encoder.adoc[Base64Encoder]::Base64Encoder
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

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

Create a Base64 encoder in the initial state, with the &apos;isPadded&apos; option set, a &apos;maxLineLength&apos; of 76, and the specified &apos;alphabet&apos;&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bdlde/Base64Encoder/2constructor-04.adoc[Base64Encoder](xref:BloombergLP/bdlde/Base64Encoder/Alphabet-0b.adoc[Alphabet] alphabet);
----

[.small]#xref:BloombergLP/bdlde/Base64Encoder/2constructor-04.adoc[_» more&period;&period;&period;_]#

Create a Base64 encoder configured from the specified `options`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bdlde/Base64Encoder/2constructor-0d.adoc[Base64Encoder](xref:BloombergLP/bdlde/Base64Encoder.adoc[EncoderOptions] const& options = EncoderOptions&colon;&colon;mime());
----

[.small]#xref:BloombergLP/bdlde/Base64Encoder/2constructor-0d.adoc[_» more&period;&period;&period;_]#

Create a Base64 encoder in the initial state, with the &apos;isPadded&apos; option set and the two specified options&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bdlde/Base64Encoder/2constructor-08.adoc[Base64Encoder](
    int maxLineLength,
    xref:BloombergLP/bdlde/Base64Encoder/Alphabet-0b.adoc[Alphabet] alphabet = e&lowbar;BASIC);
----

[.small]#xref:BloombergLP/bdlde/Base64Encoder/2constructor-08.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *alphabet*
| Base64 alphabet to use for encoding
| *options*
| encoder configuration (line length, alphabet, padding)
| *maxLineLength*
| maximum encoded line length before a soft break
|===


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