Bcs

object Bcs

Functions

Link copied to clipboard
inline fun <T> decodeFromByteArray(bytes: ByteArray): T
fun <T> decodeFromByteArray(bytes: ByteArray, deserializer: DeserializationStrategy<T>): T

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

Link copied to clipboard
inline fun <T> encodeToByteArray(value: T): ByteArray
fun <T> encodeToByteArray(serializer: SerializationStrategy<T>, value: T): ByteArray

Encode a value to a byte array according to the BCS specification.