15 using FlushCallback = bool (*)(
void *context,
const char *buf,
int size);
19 void setBuffer(
char *buffer,
int bufferLen);
20 void send(
void *context,
21 FlushCallback flushCallback,
24 bool flush(
void *context, FlushCallback flushCallback);
28 bool flushPending(
void *context, FlushCallback flushCallback);
30 char *buffer_ =
nullptr;