setBufferAsync

fun setBufferAsync(engine: Engine, data: ByteArray, destOffsetInBytes: Int = 0, count: Int = 0, callback: (IndexBuffer, AsyncCallStatus) -> Unit? = null): Int

setBuffer, asynchronously: returns an ID for Engine.cancelAsyncCall, and callback runs once on the main thread with how it ended. Needs Engine.isAsynchronousModeEnabled.