decodeFromByteArrayBlocking

abstract fun decodeFromByteArrayBlocking(format: F, bytes: ByteArray): M(source)

Decodes material from the given bytes encoded in the specified format and returns the resulting instance of M.

Throws an exception if the bytes are not valid for the given format or do not represent well-formed material.

Use decodeFromByteArray when calling from suspending code.