#include <cxxtools/base64stream.h>
Public Member Functions | |
| Base64ostream (std::ostream &out) | |
| Base64ostream (std::streambuf *sb) | |
| instantiate encode with a output-stdstreambuf. | |
| void | end () |
| pad and flush stream. | |
To base64-encode, instantiate a Base64ostream with an outputstream. Write the data to encode into the stream. Base64ostream writes the base64-encoded data to the outputstream. When ready call end() to pad and flush. The stream is also padded and flushed in the destructor, when there are characters left.
| Base64ostream | ( | std::ostream & | out | ) |
instantiate encode with a output-stream, which received encoded Data.