mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-06 05:37:50 +02:00
Simplify usage of Span in several places
This commit is contained in:
@@ -12,7 +12,7 @@ void test_one_input(const std::vector<uint8_t>& buffer)
|
||||
const size_t query_size = fuzzed_data_provider.ConsumeIntegral<size_t>();
|
||||
const std::string query = fuzzed_data_provider.ConsumeBytesAsString(std::min<size_t>(query_size, 1024 * 1024));
|
||||
const std::string span_str = fuzzed_data_provider.ConsumeRemainingBytesAsString();
|
||||
const Span<const char> const_span = MakeSpan(span_str);
|
||||
const Span<const char> const_span{span_str};
|
||||
|
||||
Span<const char> mut_span = const_span;
|
||||
(void)spanparsing::Const(query, mut_span);
|
||||
|
||||
Reference in New Issue
Block a user