| 148 | // ASN 0 is reserved and used if there isn't a match. |
| 149 | constexpr uint8_t ASN_BIT_SIZES[]{15, 16, 17, 18, 19, 20, 21, 22, 23, 24}; |
| 150 | uint32_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. |
no test coverage detected