Skip to content

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.

BitPrefix

bigint

RangeError When the prefix is not over a 128-bit address.