Sha256: 760694b29dbfa0c290ef8fd5eedbb4f31ac01722c7d16e2b8e5009a401ae4bda

Contents?: true

Size: 251 Bytes

Versions: 15

Compression:

Stored size: 251 Bytes

Contents

class I2lIpData  < 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

15 entries across 15 versions & 1 rubygems

Version Path
ip2location_ruby-8.7.0 lib/ip2location_ruby/i2l_ip_data.rb
ip2location_ruby-8.6.0 lib/ip2location_ruby/i2l_ip_data.rb
ip2location_ruby-8.5.0 lib/ip2location_ruby/i2l_ip_data.rb
ip2location_ruby-8.4.0 lib/ip2location_ruby/i2l_ip_data.rb
ip2location_ruby-8.3.2 lib/ip2location_ruby/i2l_ip_data.rb
ip2location_ruby-8.3.1 lib/ip2location_ruby/i2l_ip_data.rb
ip2location_ruby-8.3.0 lib/ip2location_ruby/i2l_ip_data.rb
ip2location_ruby-8.2.3 lib/ip2location_ruby/i2l_ip_data.rb
ip2location_ruby-8.2.2 lib/ip2location_ruby/i2l_ip_data.rb
ip2location_ruby-8.2.1 lib/ip2location_ruby/i2l_ip_data.rb
ip2location_ruby-8.2.0 lib/ip2location_ruby/i2l_ip_data.rb
ip2location_ruby-8.1.1 lib/ip2location_ruby/i2l_ip_data.rb
ip2location_ruby-8.1.0 lib/ip2location_ruby/i2l_ip_data.rb
ip2location_ruby-8.0.3 lib/ip2location_ruby/i2l_ip_data.rb
ip2location_ruby-8.0.2 lib/ip2location_ruby/i2l_ip_data.rb