TradesDataType

class TradesDataType : PersistentDataType<ByteArray, IntArray>

Custom PersistentDataType implementation for converting between ByteArray and IntArray.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun fromPrimitive(primitive: ByteArray, context: PersistentDataAdapterContext): IntArray

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

Link copied to clipboard
open override fun getComplexType(): Class<IntArray>

Returns the complex type of the data.

Link copied to clipboard
open override fun getPrimitiveType(): Class<ByteArray>

Returns the primitive type of the data.

Link copied to clipboard
open override fun toPrimitive(complex: IntArray, context: PersistentDataAdapterContext): ByteArray

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