ip-num
    Preparing search index...

    Class Pool<T>

    Represents a collection of IP RangedSet's

    Type Parameters

    • T extends RangeType
    Index

    Constructors

    Methods

    • Removes all ranges from pool

      Returns void

    • 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.

      Type Parameters

      Parameters

      • prefix: T

        prefix range to retrieve TODO TSE

      Returns IPCidrRange<T>

    • Returns the size of IP numbers in the pool

      Returns bigint

    • Removes the given range from the pool. It only removes if the exact range exist in the pool. It is a Noop and returns false, if the given range does not exist in the pool. Returns true otherwise

      Parameters

      Returns boolean

    • Removes the given range from the pool. If the given range overlaps, then it removes the overlapping portion. It is a Noop and returns false, if the given range does not exist in the pool. Returns true otherwise

      Parameters

      Returns boolean