def match_internal?(hashes, size)
      n, payload = Bitcoin.unpack_var_int(encoded.htb)
      bit_reader = Bitcoin::BitStreamReader.new(payload)
      value = 0
      hashes_index = 0
      n.times do
        delta = golomb_rice_decode(bit_reader, p)
        value += delta
        loop do
          return false if hashes_index == size
          return true if hashes[hashes_index] == value
          break if hashes[hashes_index] > value
          hashes_index += 1
        end
      end
      false
    end
def match_internal?(hashes, size)
      n, payload = Bitcoin.unpack_var_int(encoded.htb)
      bit_reader = Bitcoin::BitStreamReader.new(payload)
      value = 0
      hashes_index = 0
      n.times do
        delta = golomb_rice_decode(bit_reader, p)
        value += delta
        loop do
          return false if hashes_index == size
          return true if hashes[hashes_index] == value
          break if hashes[hashes_index] > value
          hashes_index += 1
        end
      end
      false
    end
Checks if the elements may be in the set.
 @param [Array[Integer]] hashes the query hash list.
 @param [Integer] size query size.
 @return [Boolean] whether elements in set.