Interface Uint8ClampedArray
-
- All Superinterfaces:
ArrayBufferView
,Uint8Array
- All Known Implementing Classes:
Uint8ArrayNative
,Uint8ClampedArrayImpl
,Uint8ClampedArrayNativeEmul
public interface Uint8ClampedArray extends Uint8Array
A view representing anArrayBuffer
as 8-bit unsigned integers. Storing out-of-range values are mapped to valid values by clamping to the range 0-255. {@link "http://www.khronos.org/registry/typedarray/specs/latest/#7"}
-
-
Field Summary
-
Fields inherited from interface com.google.gwt.typedarrays.shared.Uint8Array
BYTES_PER_ELEMENT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Uint8ClampedArray
subarray(int begin)
Create a new view from the same array, fromoffset
to the end of this view.Uint8ClampedArray
subarray(int begin, int end)
Create a new view from the same array, fromoffset
to (but not including)end
in this view.-
Methods inherited from interface com.google.gwt.typedarrays.shared.ArrayBufferView
buffer, byteLength, byteOffset
-
-
-
-
Method Detail
-
subarray
Uint8ClampedArray subarray(int begin)
Create a new view from the same array, fromoffset
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.- Specified by:
subarray
in interfaceUint8Array
- Parameters:
begin
- offset into this view if non-negative; if negative, an index from the end of this view- Returns:
- a new
Uint8ClampedArray
instance
-
subarray
Uint8ClampedArray subarray(int begin, int end)
Create a new view from the same array, fromoffset
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.- Specified by:
subarray
in interfaceUint8Array
- Parameters:
begin
- 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 view- Returns:
- a new
Uint8ClampedArray
instance
-
-