An output filter layer to write base-64 encoded content. More...
Public Member Functions | |
base64Layer (std::ostream &os) | |
~base64Layer () | |
void | write (const char *s, std::streamsize n) |
void | reset () |
bool | close () |
Static Public Member Functions | |
static std::size_t | encodedLength (std::size_t n) |
Protected Member Functions | |
void | add (char c) |
An output filter layer to write base-64 encoded content.
Base64 encoding according to RFC 4648 specification (https://tools.ietf.org/html/rfc4648#page-5). It is the obligation of the caller to avoid using normal output while the base-64 encoding layer is actively used.
Definition at line 51 of file base64Layer.H.
|
explicit |
Definition at line 100 of file base64Layer.C.
~base64Layer | ( | ) |
Definition at line 111 of file base64Layer.C.
|
protected |
Definition at line 78 of file base64Layer.C.
References Foam::constant::universal::c.
Referenced by foamVtkBase64Layer::write().
|
static |
Definition at line 45 of file base64Layer.C.
References n.
Referenced by foamVtkBase64Layer::encodedLength().
void write | ( | const char * | s, |
std::streamsize | n | ||
) |
Definition at line 119 of file base64Layer.C.
References Foam::add(), n, and s.
void reset | ( | ) |
Definition at line 128 of file base64Layer.C.
bool close | ( | ) |
Definition at line 135 of file base64Layer.C.
Referenced by base64Formatter::flush(), foamVtkBase64Layer::flush(), appendBase64Formatter::~appendBase64Formatter(), base64Formatter::~base64Formatter(), and foamVtkBase64Layer::~foamVtkBase64Layer().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.