MCPcopy Create free account
hub / github.com/ElementsProject/elements / ConsumeBool

Method ConsumeBool

src/test/fuzz/FuzzedDataProvider.h:288–290  ·  view source on GitHub ↗

Reads one byte and returns a bool, or false when no data remains.

Source from the content-addressed store, hash-verified

286
287// Reads one byte and returns a bool, or false when no data remains.
288inline bool FuzzedDataProvider::ConsumeBool() {
289 return 1 & ConsumeIntegral<uint8_t>();
290}
291
292// Returns an enum value. The enum must start at 0 and be contiguous. It must
293// also contain |kMaxValue| aliased to its largest (inclusive) value. Such as:

Callers 15

GetScriptPubKeyMethod · 0.80
FUZZ_TARGET_INITFunction · 0.80
FUZZ_TARGET_INITFunction · 0.80
FUZZ_TARGET_INITFunction · 0.80
FUZZ_TARGET_INITFunction · 0.80
FUZZ_TARGET_INITFunction · 0.80
FUZZ_TARGETFunction · 0.80
FUZZ_TARGET_INITFunction · 0.80
FUZZ_TARGET_INITFunction · 0.80
FUZZ_TARGET_INITFunction · 0.80
FUZZ_TARGETFunction · 0.80
FUZZ_TARGETFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected