public final class Uint8ClampedArrayImpl extends Uint8ArrayImpl implements Uint8ClampedArray
Uint8ClampedArray.arrayBuf, byteLength, byteOffset, USE_LITTLE_ENDIANBYTES_PER_ELEMENT| Constructor and Description |
|---|
Uint8ClampedArrayImpl(ArrayBuffer buffer,
int byteOffset,
int byteLength) |
| Modifier and Type | Method and Description |
|---|---|
void |
set(int index,
int value)
Set one element in this view.
|
Uint8ClampedArray |
subarray(int begin)
Create a new view from the same array, from
offset to the end of
this view. |
Uint8ClampedArray |
subarray(int begin,
int end)
Create a new view from the same array, from
offset to (but not
including) end in this view. |
get, length, set, set, set, set, set, setbuffer, byteLength, byteOffset, checkRangeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, length, set, set, set, set, set, setbuffer, byteLength, byteOffsetpublic Uint8ClampedArrayImpl(ArrayBuffer buffer, int byteOffset, int byteLength)
buffer - byteOffset - byteLength - public void set(int index,
int value)
Uint8Arrayset in interface Uint8Arrayset in class Uint8ArrayImplpublic Uint8ClampedArray subarray(int begin)
Uint8Arrayoffset to the end of
this view. These offset is clamped to legal indices into this view, so it
is not an error to specify an invalid index.subarray in interface Uint8Arraysubarray in interface Uint8ClampedArraysubarray in class Uint8ArrayImplbegin - offset into this view if non-negative; if negative, an index
from the end of this viewUint8Array instancepublic Uint8ClampedArray subarray(int begin, int end)
Uint8Arrayoffset to (but not
including) end in this view. These indices are clamped to legal
indices into this view, so it is not an error to specify invalid indices.subarray in interface Uint8Arraysubarray in interface Uint8ClampedArraysubarray in class Uint8ArrayImplbegin - offset into this view if non-negative; if negative, an index from
the end of this viewend - offset into this view if non-negative; if negative, an index from
the end of this viewUint8Array instance