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

Function DecodeMatch

src/util/asmap.cpp:71–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70const std::vector<uint8_t> MATCH_BIT_SIZES{1, 2, 3, 4, 5, 6, 7, 8};
71uint32_t DecodeMatch(std::vector<bool>::const_iterator& bitpos, const std::vector<bool>::const_iterator& endpos)
72{
73 return DecodeBits(bitpos, endpos, 2, MATCH_BIT_SIZES);
74}
75
76
77const std::vector<uint8_t> JUMP_BIT_SIZES{5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30};

Callers 2

InterpretFunction · 0.85
SanityCheckASMapFunction · 0.85

Calls 1

DecodeBitsFunction · 0.85

Tested by

no test coverage detected