Function binary_to_base64

Synopsis

#include "breeze/encoding/binary_to_base64.hpp"

template <typename InputIter, typename OutputIter>
void binary_to_base64(InputIter begin, InputIter end, OutputIter out, int wrap_column=0)

Description

Converts a binary sequence to Base64. Conforms to RFC 3548, except that it allows to line-wrap the generated Base64 output (wrap_column != 0).

Precondition
wrap_column >= 0
Parameters

begin - Iterator to the first element of the binary sequence.

end - One-past-the-end iterator in the binary sequence.

out - Iterator to the first element of the Base64 output.

wrap_column - Column where line-wrapping must occur in the generated output (0 means "no wrapping").

Source

Line 44 in breeze/encoding/binary_to_base64.hpp.