setBuffer
Sets the index data for this buffer.
Parameters
engine
The engine
data
The index data as a ByteArray
Sets the index data with offset and count.
Parameters
engine
The engine
data
The index data as a ByteArray
destOffsetInBytes
Destination offset in bytes
count
Number of bytes to copy
fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int, callback: () -> Unit? = null)
Sets the index data with offset, count, and optional completion callback.
Parameters
engine
The engine
data
The index data as a ByteArray
destOffsetInBytes
Destination offset in bytes
count
Number of bytes to copy
callback
Optional callback that executes when the data upload is complete