IPValue
IPValue is the opaque runtime representation of an IP address.
Implements
Section titled “Implements”Val
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new IPValue(
address):IPValue
constructor stores a parsed address.
Parameters
Section titled “Parameters”address
Section titled “address”ParsedAddress
Returns
Section titled “Returns”IPValue
Properties
Section titled “Properties”address
Section titled “address”
readonlyaddress:ParsedAddress
Methods
Section titled “Methods”convertToNative()
Section titled “convertToNative()”convertToNative(
typeDesc):unknown
convertToNative converts an IP 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 an IP 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 opaque IP contains identical address bits.
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 address size in bytes for runtime cost accounting.
Returns
Section titled “Returns”Val
type()
Section titled “type()”type():
Type
type returns the opaque IP type.
Returns
Section titled “Returns”Type
Implementation of
Section titled “Implementation of”Val.type
value()
Section titled “value()”value():
unknown
value returns the canonical IP string.
Returns
Section titled “Returns”unknown
Implementation of
Section titled “Implementation of”Val.value