Companion

Functions

Link copied to clipboard
@JvmStatic
@JvmName(name = "get")
fun String.toIPAddressV6(): IPAddress.V6

Parses a String for its IPv6 address.

@JvmStatic
@JvmOverloads
@JvmName(name = "get")
fun ByteArray.toIPAddressV6(scope: String? = null): IPAddress.V6

Convert network ordered bytes to an IPv6 address.

Link copied to clipboard
@JvmStatic
@JvmName(name = "getOrNull")
fun String.toIPAddressV6OrNull(): IPAddress.V6?

Parses a String for its IPv6 address.

@JvmStatic
@JvmOverloads
@JvmName(name = "getOrNull")
fun ByteArray.toIPAddressV6OrNull(scope: String? = null): IPAddress.V6?

Convert network ordered bytes to an IPv6 address.