Skip to content

Base64Coder

class Base64StreamDecoder

Decode Base64-encoded data and write the decoded data to a stream.

constructor Base64StreamDecoder(std::ostream &stream, size_t line_length = 0, size_t indent = 0)

ParameterDescription
stream

TYPE: std::ostream &

line_length

TYPE: size_tDEFAULT: 0

indent

TYPE: size_tDEFAULT: 0

class Base64StreamEncoder

Encode data in Base64 and write it to a stream.

constructor Base64StreamEncoder(std::ostream &stream, size_t line_length = 0, size_t indent = 0)

ParameterDescription
stream

TYPE: std::ostream &

line_length

TYPE: size_tDEFAULT: 0

indent

TYPE: size_tDEFAULT: 0

method void end()

class Base64StringDecoder

Decode Base64-encoded data and collect the decoded data in a string.

constructor Base64StringDecoder()

method std::string end()

ReturnsDescription
std::string

member engine{output}

member output

class Base64StringEncoder

Encode data in Base64 and collect the encoded data in a string.

constructor Base64StringEncoder()

method std::string end()

Finish the encoding process and return the encoded data.

ReturnsDescription
std::string

The encoded data.