public abstract class TypeArray extends ArrayBufferView
ArrayBuffer
that
allows for indexing and manipulation.Modifier and Type | Method and Description |
---|---|
int |
getLength()
Gets the length of this array in elements.
|
int |
reverse() |
void |
set(TypeArray array)
Set multiple values, reading input values from the array.
|
void |
set(TypeArray array,
int offset)
Set multiple values, reading input values from the array.
|
getBuffer, getByteLength, getByteOffset
public final void set(TypeArray array)
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.array
- public final void set(TypeArray array, int offset)
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.array
- offset
- indicates the index in the current array where values are
written.public final int getLength()
public final int reverse()