MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / DecodeASN

Function DecodeASN

src/util/asmap.cpp:150–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148// ASN 0 is reserved and used if there isn't a match.
149constexpr uint8_t ASN_BIT_SIZES[]{15, 16, 17, 18, 19, 20, 21, 22, 23, 24};
150uint32_t DecodeASN(size_t& bitpos, const std::span<const std::byte> data)
151{
152 return DecodeBits(bitpos, data, 1, ASN_BIT_SIZES);
153}
154
155// MATCH argument: Values in [2, 511]. The highest set bit determines the match length
156// n ∈ [1,8]; the lower n-1 bits are the pattern to compare.

Callers 2

InterpretFunction · 0.85
SanityCheckAsmapFunction · 0.85

Calls 1

DecodeBitsFunction · 0.85

Tested by

no test coverage detected