decodeFromByteArray

fun <T> decodeFromByteArray(bytes: ByteArray, deserializer: DeserializationStrategy<T>): T

Decode a value from a byte array according to the BCS specification.

Return

The decoded value.

Parameters

bytes

The byte array to decode.

deserializer

The deserializer to use to decode the value.


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

Decode a value from a byte array according to the BCS specification.

This is an inline overload convenience method to avoid the need to explicitly pass a deserializer.

Return

The decoded value.

Parameters

bytes

The byte array to decode.