setBuffer

actual fun setBuffer(engine: Engine, data: ByteArray)

Sets the index data for this buffer.

Parameters

engine

The engine

data

The index data as a ByteArray


actual fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int)

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


actual fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int, callback: () -> Unit?)

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

expect fun setBuffer(engine: Engine, data: ByteArray)

Sets the index data for this buffer.

Parameters

engine

The engine

data

The index data as a ByteArray


expect fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int)

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


expect 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

actual fun setBuffer(engine: Engine, data: ByteArray)

Sets the index data for this buffer.

Parameters

engine

The engine

data

The index data as a ByteArray


actual fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int)

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


actual fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int, callback: () -> Unit?)

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

actual fun setBuffer(engine: Engine, data: ByteArray)

Sets the index data for this buffer.

Parameters

engine

The engine

data

The index data as a ByteArray


actual fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int)

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


actual fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int, callback: () -> Unit?)

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

actual fun setBuffer(engine: Engine, data: ByteArray)

Sets the index data for this buffer.

Parameters

engine

The engine

data

The index data as a ByteArray


actual fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int)

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


actual fun setBuffer(engine: Engine, data: ByteArray, destOffsetInBytes: Int, count: Int, callback: () -> Unit?)

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