decodeFromByteArray

inline fun <T> BinaryFormat.decodeFromByteArray(bytes: ByteArray): T

Decodes and deserializes the given byte array to the value of type T using deserializer retrieved from the reified type parameter.