MCPcopy Create free account
hub / github.com/SmingHub/Sming / write

Method write

Sming/Core/Data/Buffer/PrintBuffer.cpp:13–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include "PrintBuffer.h"
12
13size_t BasePrintBuffer::write(uint8_t c)
14{
15 buffer[writeOffset++] = c;
16 if(writeOffset == bufferSize) {
17 flush();
18 }
19 return 1;
20}
21
22size_t BasePrintBuffer::write(const uint8_t* data, size_t size)
23{

Callers 2

flushMethod · 0.45
printToMethod · 0.45

Calls 1

minFunction · 0.85

Tested by

no test coverage detected