toByteArray

abstract fun toByteArray(data: T?): ByteArray

toByteArray converts data of type T to a ByteArray Any required dependencies should be provided via the constructor of the implementing class

Return

ByteArray to be written to disk

Parameters

data

the generic data T to be converted to a ByteArray