Sha256: 7f91ca2f3895236c74dae56a6dabefab03affd09edfe531e6a0127b237ad2685

Contents?: true

Size: 242 Bytes

Versions: 6

Compression:

Stored size: 242 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

6 entries across 6 versions & 1 rubygems

Version Path
ip2location_ruby-8.0.1 lib/ip2location_ruby/i2l_ip_data.rb
ip2location_ruby-7.0.0 lib/ip2location_ruby/i2l_ip_data.rb
ip2location_ruby-0.3.2 lib/ip2location_ruby/i2l_ip_data.rb
ip2location_ruby-0.3.1 lib/ip2location_ruby/i2l_ip_data.rb
ip2location_ruby-0.2.0 lib/ip2location_ruby/i2l_ip_data.rb
ip2location_ruby-0.1.2 lib/ip2location_ruby/i2l_ip_data.rb