Hex

expect object Hex
actual object Hex
actual object Hex

Functions

Link copied to clipboard
expect fun decode(hexData: String): ByteArray

Decodes string in Hex to buffer.

actual fun decode(hexData: String): ByteArray

Decodes string in Hex to byte array.

actual external fun decode(hexData: String): ByteArray

Decodes string in Hex to byte array.

Link copied to clipboard
expect fun encode(data: ByteArray): String

Encodes buffer to a string in Hex format.

actual fun encode(data: ByteArray): String

Encodes byte array to a string in Hex format.

actual external fun encode(data: ByteArray): String

Encodes byte array to a string in Hex format.

Link copied to clipboard
expect fun is(data: String): Boolean

Checks if given string is in Hex format.

actual fun is(data: String): Boolean

Checks if given string is in Hex format.

actual external fun is(data: String): Boolean

Checks if given string is in Hex format.