Skip to content

CIDRValue

CIDRValue is the opaque runtime representation of an IP prefix.

  • Val

new CIDRValue(prefix): CIDRValue

constructor stores a parsed prefix.

ParsedPrefix

CIDRValue

readonly prefix: ParsedPrefix

convertToNative(typeDesc): unknown

convertToNative converts a CIDR to its supported native representation.

unknown

unknown

Val.convertToNative


convertToType(typeValue): Val

convertToType converts a CIDR to string, its own type, or type metadata.

Type

Val

Val.convertToType


equal(other): Val

equal reports whether another CIDR has identical address bits and mask length.

Val

Val

Val.equal


size(): Val

size returns the prefix address size in bytes for runtime cost accounting.

Val


type(): Type

type returns the opaque CIDR type.

Type

Val.type


value(): unknown

value returns the canonical CIDR string while retaining input host bits.

unknown

Val.value