toPrimitive

open override fun toPrimitive(complex: IntArray, context: PersistentDataAdapterContext): ByteArray

Converts the complex type (IntArray) to the primitive type (ByteArray).

Return

The converted primitive type (ByteArray).

Parameters

complex

The complex type to convert.

context

The PersistentDataAdapterContext.