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

Method PutBinary

src/GCodes/GCodeBuffer/GCodeBuffer.cpp:308–314  ·  view source on GitHub ↗

Add an entire binary G-Code, overwriting any existing content CAUTION! This may be called with the task scheduler suspended, so don't do anything that might block or take more than a few microseconds to execute

Source from the content-addressed store, hash-verified

306// Add an entire binary G-Code, overwriting any existing content
307// CAUTION! This may be called with the task scheduler suspended, so don't do anything that might block or take more than a few microseconds to execute
308void GCodeBuffer::PutBinary(const uint32_t *data, size_t len) noexcept
309{
310 machineState->lastCodeFromSbc = true;
311 isBinaryBuffer = true;
312 macroJustStarted = false;
313 binaryParser.Put(data, len);
314}
315
316#endif
317

Callers 2

AssignToMethod · 0.80
FillBufferMethod · 0.80

Calls 1

PutMethod · 0.45

Tested by

no test coverage detected