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

Method buffer_write_thenRead

tests/test_provider.cpp:228–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226 }
227
228 void buffer_write_thenRead() {
229 QByteArray d(8, '\0');
230 BufferProvider p(d);
231 uint32_t val = 0x12345678;
232 QVERIFY(p.write(0, &val, sizeof(val)));
233 QCOMPARE(p.readU32(0), (uint32_t)0x12345678);
234 }
235
236 // ---------------------------------------------------------------
237 // BufferProvider -- fromFile

Callers

nothing calls this directly

Calls 2

readU32Method · 0.80
writeMethod · 0.45

Tested by

no test coverage detected