Companion

Functions

Link copied to clipboard
@JvmStatic
@JvmName(name = "get")
fun ByteArray.toIPAddressV4(): IPAddress.V4

Convert network ordered bytes to an IPv4 address.

@JvmStatic
@JvmName(name = "get")
fun String.toIPAddressV4(): IPAddress.V4

Parses a String for its IPv4 address.

Link copied to clipboard
@JvmStatic
@JvmName(name = "getOrNull")
fun ByteArray.toIPAddressV4OrNull(): IPAddress.V4?

Convert network ordered bytes to an IPv4 address.

@JvmStatic
@JvmName(name = "getOrNull")
fun String.toIPAddressV4OrNull(): IPAddress.V4?

Parses a String for its IPv4 address.