MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / ReadByte

Function ReadByte

src/test/fuzz/bitset.cpp:16–22  ·  view source on GitHub ↗

Pop the first byte from a byte-span, and return it. */

Source from the content-addressed store, hash-verified

14
15/** Pop the first byte from a byte-span, and return it. */
16uint8_t ReadByte(FuzzBufferType& buffer)
17{
18 if (buffer.empty()) return 0;
19 uint8_t ret = buffer.front();
20 buffer = buffer.subspan(1);
21 return ret;
22}
23
24/** Perform a simulation fuzz test on BitSet type S. */
25template<typename S>

Callers 2

TestTypeFunction · 0.85
FUZZ_TARGETFunction · 0.85

Calls 2

emptyMethod · 0.45
frontMethod · 0.45

Tested by

no test coverage detected