MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / flush

Method flush

libraries/XMLWriter/XMLWriter.cpp:345–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343
344
345void XMLWriter::flush()
346{
347 _bytesOut += _bufferIndex;
348 if (_bufferIndex > 0)
349 {
350 _buffer[_bufferIndex] = 0;
351 _stream->write(_buffer, _bufferIndex); // saves ~40 bytes on UNO.
352 // _stream->print(_buffer);
353 _bufferIndex = 0;
354 }
355};
356
357
358////////////////////////////////////////////////////////////////////

Callers 1

unittestFunction · 0.45

Calls 1

writeMethod · 0.45

Tested by 1

unittestFunction · 0.36