setSlotsFromArray

fun <T : A_BasicObject> setSlotsFromArray(targetField: ObjectSlotsEnum, startTargetSubscript: Int, sourceArray: Array<T>, zeroBasedStartSourceSubscript: Int, count: Int)

Read elements from consecutive slots of an array, writing them to consecutive slots of the receiver. It's the client's responsibility to ensure the values are suitably immutable or shared.

Parameters

T

The type of array to copy from.

targetField

The field of the receiver into which to write values.

startTargetSubscript

The positive one-based subscript into the target field at which to start writing.

sourceArray

The array supplying values for consecutive slots.

zeroBasedStartSourceSubscript

The zero-based subscript in the sourceArray from which to start reading.

count

How many values to transfer.


fun setSlotsFromArray(targetField: IntegerSlotsEnum, startTargetSubscript: Int, sourceArray: LongArray, zeroBasedStartSourceSubscript: Int, count: Int)

Read elements from consecutive slots of a LongArray, writing them to consecutive long slots of the receiver.

Parameters

targetField

The integer field of the receiver into which to write longs.

startTargetSubscript

The positive one-based subscript into the target field at which to start writing.

sourceArray

The long[] array supplying longs for consecutive slots.

zeroBasedStartSourceSubscript

The zero-based subscript in the sourceArray from which to start reading.

count

How many longs to transfer.