ReadonlyfamilyThe address family identifier for IPv6 addresses.
Static ReadonlyBITSThe number of bits in an IPv6 address.
Static ReadonlyLOCALHOSTThe loopback address (::1).
Static ReadonlyUNSPECIFIEDThe unspecified address (::).
Checks whether this address is in the benchmarking range.
true when the address is in 2001:2::/48, otherwise false.
Checks whether this address is in a documentation-only range.
true for 2001:db8::/32 or 3fff::/20, otherwise false.
Checks whether this address appears globally reachable.
true when the address is not in known non-global special ranges.
Checks whether this address is the loopback address.
true when the address is ::1, otherwise false.
Checks whether this address is a multicast address.
true when the address is in ff00::/8, otherwise false.
Checks whether this address is a multicast admin-local address.
true when the address is in ff04::/16, otherwise false.
Checks whether this address is a multicast global address.
true when the address is in ff0e::/16, otherwise false.
Checks whether this address is a multicast interface-local address.
true when the address is in ff01::/16, otherwise false.
Checks whether this address is a multicast link-local address.
true when the address is in ff02::/16, otherwise false.
Checks whether this address is a multicast organization-local address.
true when the address is in ff08::/16, otherwise false.
Checks whether this address is a multicast realm-local address.
true when the address is in ff03::/16, otherwise false.
Checks whether this address is a multicast site-local address.
true when the address is in ff05::/16, otherwise false.
Checks whether this address is a unicast address.
true when the address is not multicast, otherwise false.
Checks whether this address is a global unicast address.
true when the address is unicast and not loopback, link-local, private, unspecified, or documentation.
Checks whether this address is a link-local unicast address.
true when the address is in fe80::/10, otherwise false.
Checks whether this address is in the unique-local range.
true when the address is in fc00::/7, otherwise false.
Checks whether this address is the unspecified address.
true when the address is ::, otherwise false.
Encodes this address to a 16-byte buffer.
OptionallittleEndian: boolean
Whether to use little-endian byte order. Defaults to false.
An ArrayBuffer containing the IPv6 integer value.
Converts this address to IPv4 when compatible or mapped.
A CoreResult containing either the resulting Ipv4Addr or a RangeError if the address is not IPv4 compatible or mapped.
Converts this address to IPv4 only when it is IPv4-mapped.
A CoreResult containing either the resulting Ipv4Addr or a RangeError if the address is not IPv4 mapped.
StaticfromCreates an IPv6 address from text.
A successful result with an IPv6 address, or an error when the input is invalid.
StaticfromCreates an IPv6 address from a 16-byte buffer.
OptionallittleEndian: booleanA successful result with an IPv6 address, or an error when the buffer cannot be read.
StaticfromCreates an IPv6 address from a 16-byte buffer and throws an error if the buffer cannot be read.
The 16-byte buffer containing the IPv6 address.
OptionallittleEndian: boolean
Whether the buffer is in little-endian format. Defaults to false (big-endian).
The IPv6 address instance.
StaticfromCreates an IPv6 address from text and throws an error if the input is invalid.
The IPv6 address in string format.
The IPv6 address instance.
StaticfromCreates an IPv6 address from a raw bigint value.
The raw bigint value representing the IPv6 address.
The IPv6 address instance.
Represents an IPv6 address.
Example
Since
v0.0.1