encodeToByteArray
abstract fun <T> encodeToByteArray(serializer: SerializationStrategy<T>, value: T): ByteArray
Content copied to clipboard
Serializes and encodes the given value to byte array using the given serializer.
Serializes and encodes the given value to byte array using the given serializer.