MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / DataLength

Method DataLength

src/Platform/OutputMemory.cpp:613–627  ·  view source on GitHub ↗

Get the total length of all queued buffers

Source from the content-addressed store, hash-verified

611
612// Get the total length of all queued buffers
613size_t OutputStack::DataLength() const volatile noexcept
614{
615 size_t totalLength = 0;
616
617 TaskCriticalSectionLocker lock;
618 for (size_t i = 0; i < count; i++)
619 {
620 if (items[i] != nullptr)
621 {
622 totalLength += items[i]->Length();
623 }
624 }
625
626 return totalLength;
627}
628
629// Append another OutputStack to this instance. If no more space is available,
630// all OutputBuffers that can't be added are automatically released

Callers 10

SendGCodeReplyMethod · 0.45
SendGCodeReplyMethod · 0.45
WriteEvaluationResultMethod · 0.45
ExchangeDataMethod · 0.45
LengthMethod · 0.45
operator[]Method · 0.45
OutputMemory.cppFile · 0.45
GetBytesLeftMethod · 0.45

Calls 1

LengthMethod · 0.45

Tested by

no test coverage detected