CIDRValue
CIDRValue is the opaque runtime representation of an IP prefix.
Implements
Section titled “Implements”Val
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CIDRValue(
prefix):CIDRValue
constructor stores a parsed prefix.
Parameters
Section titled “Parameters”prefix
Section titled “prefix”ParsedPrefix
Returns
Section titled “Returns”CIDRValue
Properties
Section titled “Properties”prefix
Section titled “prefix”
readonlyprefix:ParsedPrefix
Methods
Section titled “Methods”convertToNative()
Section titled “convertToNative()”convertToNative(
typeDesc):unknown
convertToNative converts a CIDR to its supported native representation.
Parameters
Section titled “Parameters”typeDesc
Section titled “typeDesc”unknown
Returns
Section titled “Returns”unknown
Implementation of
Section titled “Implementation of”Val.convertToNative
convertToType()
Section titled “convertToType()”convertToType(
typeValue):Val
convertToType converts a CIDR to string, its own type, or type metadata.
Parameters
Section titled “Parameters”typeValue
Section titled “typeValue”Type
Returns
Section titled “Returns”Val
Implementation of
Section titled “Implementation of”Val.convertToType
equal()
Section titled “equal()”equal(
other):Val
equal reports whether another CIDR has identical address bits and mask length.
Parameters
Section titled “Parameters”Val
Returns
Section titled “Returns”Val
Implementation of
Section titled “Implementation of”Val.equal
size()
Section titled “size()”size():
Val
size returns the prefix address size in bytes for runtime cost accounting.
Returns
Section titled “Returns”Val
type()
Section titled “type()”type():
Type
type returns the opaque CIDR type.
Returns
Section titled “Returns”Type
Implementation of
Section titled “Implementation of”Val.type
value()
Section titled “value()”value():
unknown
value returns the canonical CIDR string while retaining input host bits.
Returns
Section titled “Returns”unknown
Implementation of
Section titled “Implementation of”Val.value