ipv6AddressCount
ipv6AddressCount(
prefix):bigint
Defined in: packages/net-address/src/ipv6/ipv6-prefix.ts:48
How many addresses the prefix covers. A bigint, because a /64 holds 2⁶⁴
of them and a double cannot count that far exactly.
Parameters
Section titled “Parameters”prefix
Section titled “prefix”Returns
Section titled “Returns”bigint
Throws
Section titled “Throws”RangeError When the prefix is not over a 128-bit address.