serialize

fun serialize(destination: ByteArray): Boolean

Writes out the KTX file into destination, which must hold serializedLength bytes; false if it's too small.