OmEspHelpers
Public Member Functions | Public Attributes | List of all members
OmBase64Stream Class Reference

Given a consumer, feed in bytes and put out base64 bytes. call done() to emit the last bit of padding. Adapted liberally from * http://web.mit.edu/freebsd/head/contrib/wpa/src/utils/base64.c. More...

#include <OmBmp.h>

Inheritance diagram for OmBase64Stream:
OmIByteStream

Public Member Functions

 OmBase64Stream (OmIByteStream *consumer)
 
bool put (uint8_t ch) override
 emit a single byte, overridden by any implementation
 
bool done () override
 
- Public Member Functions inherited from OmIByteStream
virtual bool putS (const char *s)
 convenience routine, same as put byte-by-byte.
 

Public Attributes

OmIByteStreamconsumer = NULL
 
uint8_t buf [3]
 
int bufSize = 0
 
- Public Attributes inherited from OmIByteStream
bool isDone = false
 

Detailed Description

Given a consumer, feed in bytes and put out base64 bytes. call done() to emit the last bit of padding. Adapted liberally from * http://web.mit.edu/freebsd/head/contrib/wpa/src/utils/base64.c.


The documentation for this class was generated from the following file: