25 #ifndef AUNIT_FAKE_PRINT_H 26 #define AUNIT_FAKE_PRINT_H 47 static const uint8_t
kBufSize = 8 *
sizeof(
long long) + 2 + 1;
49 size_t write(uint8_t c)
override {
50 if (mIndex < kBufSize - 1) {
59 size_t write(
const uint8_t *buffer,
size_t size)
override {
60 if (buffer ==
nullptr)
return 0;
62 while (size > 0 && mIndex < kBufSize - 1) {
75 void flush()
override {
const char * getBuffer() const
Return the NUL terminated string buffer.
static const uint8_t kBufSize
Size of the internal buffer.
An implementation of Print that writes to an in-memory buffer.