| 253 | } |
| 254 | |
| 255 | void 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 |
no test coverage detected