File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1212
1313namespace {
1414
15- /* * Pop the first byte from a Span<const uint8_t> , and return it. */
16- uint8_t ReadByte (Span< const uint8_t > & buffer)
15+ /* * Pop the first byte from a byte-span , and return it. */
16+ uint8_t ReadByte (FuzzBufferType & buffer)
1717{
1818 if (buffer.empty ()) return 0 ;
1919 uint8_t ret = buffer.front ();
@@ -23,7 +23,7 @@ uint8_t ReadByte(Span<const uint8_t>& buffer)
2323
2424/* * Perform a simulation fuzz test on BitSet type S. */
2525template <typename S>
26- void TestType (Span< const uint8_t > buffer)
26+ void TestType (FuzzBufferType buffer)
2727{
2828 /* * This fuzz test's design is based on the assumption that the actual bits stored in the
2929 * bitsets and their simulations do not matter for the purpose of detecting edge cases, thus
Original file line number Diff line number Diff line change 55#ifndef BITCOIN_TEST_FUZZ_FUZZ_H
66#define BITCOIN_TEST_FUZZ_FUZZ_H
77
8- #include < span.h>
9-
108#include < cstdint>
119#include < functional>
10+ #include < span>
1211#include < string_view>
1312
1413/* *
2322#define LIMITED_WHILE (condition, limit ) \
2423 for (unsigned _count{limit}; (condition) && _count; --_count)
2524
26- using FuzzBufferType = Span <const uint8_t >;
25+ using FuzzBufferType = std::span <const uint8_t >;
2726
2827using TypeTestOneInput = std::function<void (FuzzBufferType)>;
2928struct FuzzTargetOptions {
You can’t perform that action at this time.
0 commit comments