Constructor for an IP pool.
Creates a Pool of IP ranges from supplied RangedSet's
the array of IP ranges that would make up the pool.
Gets a single or multiple ranges that fulfils the given prefix from the pool.
throws exception if the requested range cannot be got from the pool.
prefix range to retrieve
Returns an array of RangedSet's that is contained within the pool
Gets a single range of size of the given prefix from pool. Only returns a range if there is a single range in the pool of same size or greater than given prefix.
throws exception if the requested range cannot be got from the pool.
prefix range to retrieve
Returns the size of IP numbers in the pool
Removes the given range from the pool. It is a Noop, if the given range does not exist in the pool
range to remove from ppol
Convenient method for creating an instance from arrays of IPv4CidrRange or IPv6CidrRange.
the arrays of IPv4CidrRange or IPv6CidrRange that will make up the pool.
Generated using TypeDoc
Represents a collection of IP RangedSet's