Skip to content

IPValue

IPValue is the opaque runtime representation of an IP address.

  • Val

new IPValue(address): IPValue

constructor stores a parsed address.

ParsedAddress

IPValue

readonly address: ParsedAddress

convertToNative(typeDesc): unknown

convertToNative converts an IP to its supported native representation.

unknown

unknown

Val.convertToNative


convertToType(typeValue): Val

convertToType converts an IP to string, its own type, or type metadata.

Type

Val

Val.convertToType


equal(other): Val

equal reports whether another opaque IP contains identical address bits.

Val

Val

Val.equal


size(): Val

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

Val


type(): Type

type returns the opaque IP type.

Type

Val.type


value(): unknown

value returns the canonical IP string.

unknown

Val.value