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

Function ConsumeDataStream

src/test/fuzz/util.h:116–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116[[nodiscard]] inline CDataStream ConsumeDataStream(FuzzedDataProvider& fuzzed_data_provider, const std::optional<size_t>& max_length = std::nullopt) noexcept
117{
118 return CDataStream{ConsumeRandomLengthByteVector(fuzzed_data_provider, max_length), SER_NETWORK, INIT_PROTO_VERSION};
119}
120
121[[nodiscard]] inline std::vector<std::string> ConsumeRandomLengthStringVector(FuzzedDataProvider& fuzzed_data_provider, const size_t max_vector_size = 16, const size_t max_string_length = 16) noexcept
122{

Callers 2

FUZZ_TARGET_INITFunction · 0.85
FUZZ_TARGET_INITFunction · 0.85

Calls 1

Tested by

no test coverage detected