MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / buffer_writeBytes

Method buffer_writeBytes

tests/test_provider.cpp:213–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211 }
212
213 void buffer_writeBytes() {
214 QByteArray d(8, '\0');
215 BufferProvider p(d);
216 QByteArray payload("\xAA\xBB\xCC\xDD", 4);
217 QVERIFY(p.writeBytes(2, payload));
218 QCOMPARE(p.readU8(2), (uint8_t)0xAA);
219 QCOMPARE(p.readU8(5), (uint8_t)0xDD);
220 }
221
222 void buffer_write_pastEndFails() {
223 BufferProvider p(QByteArray(4, '\0'));

Callers

nothing calls this directly

Calls 2

writeBytesMethod · 0.80
readU8Method · 0.80

Tested by

no test coverage detected