Sha256: 5fccebb8630be90511667e33b464ab48133149108c48e33dab6d07140b95e618
Contents?: true
Size: 387 Bytes
Versions: 19
Compression:
Stored size: 387 Bytes
Contents
require 'bindata' require 'ipaddr' module Pio module Type # IPv6 address class Ipv6Address < BinData::Primitive endian :big uint128 :ipv6_address def set(value) self.ipv6_address = IPAddr.new(value, Socket::Constants::AF_INET6) end def get IPAddr.new(ipv6_address, Socket::Constants::AF_INET6).to_s end end end end
Version data entries
19 entries across 19 versions & 1 rubygems