Sha256: 01ad862afdca9486d1fde27880fa768cf50f1d3dd9d0b3dbe6e4741ba2c9ec1c

Contents?: true

Size: 242 Bytes

Versions: 9

Compression:

Stored size: 242 Bytes

Contents

class I2pIpData  < BinData::BasePrimitive
  def read_and_return_value(io)
    iv = eval_parameter(:ip_version)
    if iv == 4
      addr = BinData::Uint32le.read(io)
    elsif iv == 6
      addr = BinData::Uint128le.read(io)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ip2proxy_ruby-3.3.1 lib/ip2proxy_ruby/i2p_ip_data.rb
ip2proxy_ruby-3.3.0 lib/ip2proxy_ruby/i2p_ip_data.rb
ip2proxy_ruby-3.2.1 lib/ip2proxy_ruby/i2p_ip_data.rb
ip2proxy_ruby-3.2.0 lib/ip2proxy_ruby/i2p_ip_data.rb
ip2proxy_ruby-3.1.0 lib/ip2proxy_ruby/i2p_ip_data.rb
ip2proxy_ruby-1.0.3 lib/ip2proxy_ruby/i2p_ip_data.rb
ip2proxy_ruby-1.0.2 lib/ip2proxy_ruby/i2p_ip_data.rb
ip2proxy_ruby-1.0.1 lib/ip2proxy_ruby/i2p_ip_data.rb
ip2proxy_ruby-1.0.0 lib/ip2proxy_ruby/i2p_ip_data.rb