Base64 stream buffer.
More...
#include <base64buffer.h>
Base64 stream buffer.
Definition at line 30 of file base64buffer.h.
◆ Base64Buffer() [1/2]
OTest2::Base64Buffer::Base64Buffer |
( |
std::streambuf * |
decorated_, |
|
|
int |
width_ |
|
) |
| |
|
explicit |
Ctor.
- Parameters
-
decorated_ | The decorated streambuffer. The ownership is not taken, the object must exist for the whole lifetime. |
width_ | If this value is non-zero and positive, the output is formatted into lines of this width. The value must divisible by 4. If the value is zero, the output will be one continuous line. |
◆ ~Base64Buffer()
virtual OTest2::Base64Buffer::~Base64Buffer |
( |
| ) |
|
|
virtual |
◆ Base64Buffer() [2/2]
◆ close()
bool OTest2::Base64Buffer::close |
( |
| ) |
|
|
noexcept |
Close currently opened sequence.
This method finishes currently opened sequence, flushes it into the decorated stream buffer and adds appropriate base64 padding.
- Returns
- false if an error happens
◆ operator=()
The documentation for this class was generated from the following file: