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

Function ConsumeUInt256

src/test/fuzz/util.h:195–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195[[nodiscard]] inline uint256 ConsumeUInt256(FuzzedDataProvider& fuzzed_data_provider) noexcept
196{
197 const std::vector<uint8_t> v256 = fuzzed_data_provider.ConsumeBytes<uint8_t>(256 / 8);
198 if (v256.size() != 256 / 8) {
199 return {};
200 }
201 return uint256{v256};
202}
203
204[[nodiscard]] inline arith_uint256 ConsumeArithUInt256(FuzzedDataProvider& fuzzed_data_provider) noexcept
205{

Callers 15

FUZZ_TARGET_INITFunction · 0.85
FUZZ_TARGET_INITFunction · 0.85
FUZZ_TARGETFunction · 0.85
FUZZ_TARGETFunction · 0.85
FUZZ_TARGET_INITFunction · 0.85
FUZZ_TARGET_INITFunction · 0.85
FillAddrmanFunction · 0.85
AddrManDeterministicMethod · 0.85
ConsumeScalarRPCArgumentFunction · 0.85
FUZZ_TARGETFunction · 0.85
ConsumeTransactionFunction · 0.85
ConsumeTxDestinationFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected