set
protected Object set(com.oracle.truffle.api.object.DynamicObject targetObj,
Object array,
Object offset)
void set(TypedArray array, optional unsigned long offset).
void set(type[] array, optional unsigned long offset).
Set multiple values, reading input values from the array.
The optional offset value indicates the index in the current array where values are
written. If omitted, it is assumed to be 0.
If the input array is a TypedArray, the two arrays may use the same underlying
ArrayBuffer. In this situation, setting the values takes place as if all the data is
first copied into a temporary buffer that does not overlap either of the arrays, and then
the data from the temporary buffer is copied into the current array.
If the offset plus the length of the given array is out of range for the current
TypedArray, an exception is raised.
- Parameters:
targetObj - destination TypedArray
array - source object
offset - destination array offset
- Returns:
- void