Dune Core Modules (2.8.0)
class to base64 encode a stream of data More...
#include <dune/grid/io/file/vtk/streams.hh>
Public Member Functions | |
Base64Stream (std::ostream &s_) | |
Construct a Base64Stream. More... | |
template<class X > | |
void | write (X &data) |
encode a data item More... | |
void | flush () |
flush the current unwritten data to the stream. More... | |
~Base64Stream () | |
destroy the object More... | |
Detailed Description
class to base64 encode a stream of data
Constructor & Destructor Documentation
◆ Base64Stream()
|
inline |
Construct a Base64Stream.
- Parameters
-
s_ The stream the resulting base64-encoded text will be written to.
◆ ~Base64Stream()
Member Function Documentation
◆ flush()
|
inline |
flush the current unwritten data to the stream.
If the size of the received input is not a multiple of three bytes, an end-marker will be written.
Calling this function a second time without calling b64enc() or calling it right after construction has no effect.
Referenced by ~Base64Stream(), and Dune::VTK::BinaryDataArrayWriter::~BinaryDataArrayWriter().
◆ write()
|
inline |
encode a data item
The result will be written to the stream, eventually. This method may be called multiple times in a row. After this method has been called, no one else may write to the underlying stream until flush() has been called or this writer object has been destroyed.
The documentation for this class was generated from the following file:
- dune/grid/io/file/vtk/streams.hh