MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / writeCommand

Method writeCommand

tests/ntrcard-probe-test.cpp:551–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549 }
550
551 void writeCommand(const std::array<std::uint8_t, 8>& value) override
552 {
553 commands.push_back(value[0]);
554 if (value[0] == 0x81) {
555 bufferTransfers++;
556 }
557 currentCommand = value[0];
558 wordsMoved = 0;
559 started = false;
560 commandHigh = packCommandWord(value, 0);
561 commandLow = packCommandWord(value, 4);
562 }
563
564 std::uint64_t ticks(void) const override { return tick++; }
565

Callers

nothing calls this directly

Calls 2

packCommandWordFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected