Interface RangeObject

The architecture of the internal private properties of an instance of the IP class (where a copy of the properties can be obtained by IP#getProperties).

This object stores the parsing result of the original IP string, forcibly interpreted as a CIDR address. The "forcible interpretation" stands for the internal conversion of any IP address into a CIDR address, e.g. 192.168.0.1 -> 192.168.0.1/32, stored as arrays of decimals with a bit length. The isCidr property remembers whether the original string really was a CIDR.

interface RangeObject {
    bitLen: number;
    first: number[];
    isCidr: boolean;
    last: number[];
}

Properties

Properties

bitLen: number

The bit length of the CIDR address.

first: number[]

An array of decimals that represent the first IP of the CIDR address.

isCidr: boolean

false if the original address was not a CIDR.

last: number[]

An array of decimals that represent the last IP of the CIDR address.