setBuffer

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

Asynchronously copies data to initialize a region of this BufferObject.

Parameters

engine

The engine

data

The data to copy


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

Asynchronously copies data to a region of this BufferObject with offset and count.

Parameters

engine

The engine

data

The data to copy

destOffsetInBytes

Destination offset in bytes (must be a multiple of 4)

count

Number of bytes to copy


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

Asynchronously copies data to a region of this BufferObject with callback.

Parameters

engine

The engine

data

The data to copy

destOffsetInBytes

Destination offset in bytes (must be a multiple of 4)

count

Number of bytes to copy

callback

Optional callback that executes when the data upload is complete

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

Asynchronously copies data to initialize a region of this BufferObject.

Parameters

engine

The engine

data

The data to copy


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

Asynchronously copies data to a region of this BufferObject with offset and count.

Parameters

engine

The engine

data

The data to copy

destOffsetInBytes

Destination offset in bytes (must be a multiple of 4)

count

Number of bytes to copy


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

Asynchronously copies data to a region of this BufferObject with callback.

Parameters

engine

The engine

data

The data to copy

destOffsetInBytes

Destination offset in bytes (must be a multiple of 4)

count

Number of bytes to copy

callback

Optional callback that executes when the data upload is complete

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

Asynchronously copies data to initialize a region of this BufferObject.

Parameters

engine

The engine

data

The data to copy


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

Asynchronously copies data to a region of this BufferObject with offset and count.

Parameters

engine

The engine

data

The data to copy

destOffsetInBytes

Destination offset in bytes (must be a multiple of 4)

count

Number of bytes to copy


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

Asynchronously copies data to a region of this BufferObject with callback.

Parameters

engine

The engine

data

The data to copy

destOffsetInBytes

Destination offset in bytes (must be a multiple of 4)

count

Number of bytes to copy

callback

Optional callback that executes when the data upload is complete

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

Asynchronously copies data to initialize a region of this BufferObject.

Parameters

engine

The engine

data

The data to copy


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

Asynchronously copies data to a region of this BufferObject with offset and count.

Parameters

engine

The engine

data

The data to copy

destOffsetInBytes

Destination offset in bytes (must be a multiple of 4)

count

Number of bytes to copy


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

Asynchronously copies data to a region of this BufferObject with callback.

Parameters

engine

The engine

data

The data to copy

destOffsetInBytes

Destination offset in bytes (must be a multiple of 4)

count

Number of bytes to copy

callback

Optional callback that executes when the data upload is complete

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

Asynchronously copies data to initialize a region of this BufferObject.

Parameters

engine

The engine

data

The data to copy


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

Asynchronously copies data to a region of this BufferObject with offset and count.

Parameters

engine

The engine

data

The data to copy

destOffsetInBytes

Destination offset in bytes (must be a multiple of 4)

count

Number of bytes to copy


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

Asynchronously copies data to a region of this BufferObject with callback.

Parameters

engine

The engine

data

The data to copy

destOffsetInBytes

Destination offset in bytes (must be a multiple of 4)

count

Number of bytes to copy

callback

Optional callback that executes when the data upload is complete