parseHexStringToByte

fun parseHexStringToByte(hexString: String): Byte?

Converts a single hex string into a byte. The string must represent a hex number, like "0x01".

Return

The corresponding byte or null if the string is not a valid hex number.

Parameters

hexString

A string representing a single hex number.