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

Method AssignTo

src/GCodes/GCodeQueue.cpp:255–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255void QueuedCode::AssignTo(GCodeBuffer *gb) noexcept
256{
257#if HAS_SBC_INTERFACE
258 if (isBinary)
259 {
260 // Note that the data has to remain on a 4-byte boundary for this to work
261 gb->PutBinary(reinterpret_cast<const uint32_t *>(data), dataLength / sizeof(uint32_t));
262 }
263 else
264#endif
265 {
266 gb->PutAndDecode(data, dataLength);
267 }
268}
269
270// End
271

Callers 1

FillBufferMethod · 0.80

Calls 2

PutBinaryMethod · 0.80
PutAndDecodeMethod · 0.45

Tested by

no test coverage detected