hexToByte

Common
JVM
JS
Native
1.9
@ExperimentalStdlibApi fun String.hexToByte(
    format: HexFormat = HexFormat.Default
): Byte

(source)

Parses a Byte value from this string using the specified format.

Note that only HexFormat.NumberHexFormat affects parsing, and parsing is performed in case-insensitive manner.

Parameters

format - the HexFormat to use for parsing, HexFormat.Default by default.

Exceptions

IllegalArgumentException - if this string does not comply with the specified format.