Scoop API

scoop:scoop.platform:0.1.0

IpNetwork

class IpNetwork

source · line 9
public
public class IpNetwork public constructor(
    address: IpAddress,
    /**
     * The number of leading address bits belonging to the network prefix.
     */
    public val prefixLength: Int
) : Equals<IpNetwork>, Hash, ToString

An IP prefix whose stored network address has host bits cleared. Membership requires a compatible address family and matching prefix.

function toString

source · line 54
public
public override fun toString(): String

Returns numeric address notation without performing name resolution.

property prefixLength

source · line 14
public
public val prefixLength: Int

get: public read-only

The number of leading address bits belonging to the network prefix.

property address

source · line 19
public
public val address: IpAddress

get: public read-only

The normalized network address with host bits cleared.

function hash

source · line 50
public
public override fun hash(): Long

Hashes the same address identity used by equality.