CidrBlock

An address block in CIDR notation, for Untrusted's extraDeniedRanges.

Stable Core. Built with parse. Equality is on the family, the address bytes and the prefix length; toString() is the canonical block (10.0.0.0/8, fd00::/8). A policy's own toString() prints only how many blocks it holds. This class exposes nothing else in this release.

Types

Link copied to clipboard
object Companion

The parser.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Two CidrBlocks are equal when their family, address bytes and prefix length are equal.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code consistent with equals: it is computed from the same properties.

Link copied to clipboard
open override fun toString(): String

Returns the canonical block, for example 10.0.0.0/8 or fd00::/8.