Printer.
More...
#include <printer.h>
Printer.
Definition at line 23 of file printer.h.
◆ PrintlnFunc
typedef void(* roc::core::Printer::PrintlnFunc) (const char *buf, size_t bufsz) |
Printing function.
Definition at line 30 of file printer.h.
◆ anonymous enum
Enumerator |
---|
BufferSize | Maximum buffer size.
|
Definition at line 25 of file printer.h.
◆ Printer()
roc::core::Printer::Printer |
( |
PrintlnFunc |
println_func = NULL | ) |
|
Initialize printer. If println_func
is NULL, prints text to console.
◆ ~Printer()
roc::core::Printer::~Printer |
( |
| ) |
|
◆ writef()
size_t roc::core::Printer::writef |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
Write text.
- Returns
- size of formatted string (excluding terminating zero byte).
The documentation for this class was generated from the following file: