Get started

decodeFromHexString

inline fun <reified T> BinaryFormat.decodeFromHexString(hex: String): T(source)

Decodes byte array from the given hex string and the decodes and deserializes it to the value of type T, delegating it to the BinaryFormat.

This method is a counterpart to encodeToHexString.

Throws

in case of any decoding-specific error

if the decoded input is not a valid instance of T