Represents an IPv6 address backed by a 128-bit unsigned integer (UInt128).
Complies strictly with RFC 5952 canonical formatting rules.
Constructors
Creates an IPv6Address from an Ipconv::IPv6 struct.
SourceInitializes an IPv6Address from a raw 128-bit unsigned integer.
Sourceparse(str :
String) :
IPv6Address Parses standard, abbreviated, and zero-compressed IPv6 strings into an IPv6Address.
SourceInstance methods
+(other :
Int) :
IPv6Address Adds an integer offset to this address.
Source-(other :
Int) :
IPv6Address Subtracts an integer offset from this address.
SourceComputes the distance (number of addresses) between two IPv6 addresses.
Source<=>(other :
IPv6Address) :
Int32 Compares this IPv6 address with another based on raw integer value.
Sourceglobal_unicast?
Returns true if this is a global unicast address (2000::/3).
Sourcehextets
Decomposes the address into 8 16-bit unsigned integers (hextets).
Sourcelink_local?
Returns true if this is a link-local unicast address (fe80::/10).
Sourceloopback?
Returns true if this is the loopback address (::1).
Sourcemulticast?
Returns true if this is a multicast address (ff00::/8).
Sourcespecial
Returns the IANA special-purpose designation (e.g. UniqueLocal, LinkLocal, Multicast).
Sourceto_ipconv
Converts this IPv6Address into an Ipconv::IPv6 representation.
SourceOutputs canonical RFC 5952 zero-compressed representation.
Sourceunique_local?
Returns true if this is a unique local address (fc00::/7).
Sourceunspecified?
Returns true if this is the unspecified address (::).
Source