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

Method AssignFrom

src/GCodes/GCodeQueue.cpp:246–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244// QueuedCode class
245
246void QueuedCode::AssignFrom(const GCodeBuffer &gb) noexcept
247{
248#if HAS_SBC_INTERFACE
249 isBinary = gb.IsBinary();
250#endif
251 dataLength = min<size_t>(gb.DataLength(), sizeof(data));
252 memcpy(data, gb.DataStart(), dataLength);
253}
254
255void QueuedCode::AssignTo(GCodeBuffer *gb) noexcept
256{

Callers 3

QueueCodeMethod · 0.45
DoFileMacroMethod · 0.45
ForkFromMethod · 0.45

Calls 2

DataLengthMethod · 0.45
DataStartMethod · 0.45

Tested by

no test coverage detected