Ipconv::IPv6
Inherits Comparable < Struct < Value < Object
Represents an IPv6 address backed by two 64-bit unsigned integers (hi and lo).
Constructors
Creates an IPv6 address from high and low 64-bit unsigned integers.
Creates an IPv6 address from an 8-element UInt16 static array representing the 8 hextets.
Instance methods
Returns a new IPv6 address offset by other numeric positions.
Raises OverflowError on bounds overflow or underflow.
Subtracts an integer offset from this IPv6 address. Raises OverflowError on bounds underflow or overflow.
Computes the address distance between this address and other.
Raises OverflowError if self < other.
Returns the mapped IPv4 address if this address is an IPv4-mapped address (::ffff:x.x.x.x),
or nil otherwise.
Returns the next sequential IPv6 address. Raises OverflowError if already at ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff.
Returns the fully expanded 8-hextet string representation (e.g. "2001:0DB8:0000:0000:0000:0000:0000:0001").
Returns the IPv4-mapped mixed notation string if this address is an IPv4-mapped address (::ffff:x.x.x.x),
or nil otherwise.