MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / Print

Class Print

include/VectorDisplay.h:22–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22class Print {
23public:
24 virtual size_t write(uint8_t c) = 0;
25 virtual size_t write(const uint8_t* s, size_t length) {
26 size_t wrote = 0;
27 while (length > 0) {
28 size_t b = write(*s++);
29 if (b <= 0)
30 break;
31 b++;
32 length--;
33 }
34 return wrote;
35 }
36
37 virtual size_t write(const char* s) {
38 return write((uint8_t*)s, strlen(s));
39 }
40};
41
42class Stream : public Print {
43public:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected