OmEspHelpers
|
#include <OmPrintfStream.h>
Public Member Functions | |
bool | handlePercent (const char *start, const char *end, VA_LIST_ARG) |
OmPrintfStream (OmIByteStream *consumer) | |
bool | putF (const char *fmt,...) |
bool | putVF (const char *fmt, VA_LIST_ARG) |
![]() | |
virtual bool | put (uint8_t ch) |
emit a single byte, overridden by any implementation | |
virtual bool | done () |
virtual bool | putS (const char *s) |
convenience routine, same as put byte-by-byte. | |
Static Public Member Functions | |
static bool | putF (OmIByteStream *consumer, const char *fmt,...) |
like sprintf, but to an OmIByteStream | |
static bool | putVF (OmIByteStream *consumer, const char *fmt, VA_LIST_ARG) |
Public Attributes | |
OmIByteStream * | consumer = NULL |
![]() | |
bool | isDone = false |
A limited implementation of printf semantics that streams to a consumer. It doesn't handle positional arguments... and may have other subtle omissions. But works for basic typical printf. Doesn't depend on an in-memory char target big enough for the result.