Class NativeImpl
java.lang.Object
com.google.gwt.typedarrays.shared.TypedArrays.Impl
com.google.gwt.typedarrays.client.NativeImpl
- Direct Known Subclasses:
NativeImplFull
The default implementation class, which assumes that Typed Arrays might be
supported and does runtime checks where necessary, substituting emulated
implementations of DataView and Uint8ClampedArray where they are missing.
This can be replaced with a version which avoids runtime checks where possible for efficiency.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected boolean
createArrayBuffer
(int length) createDataView
(ArrayBuffer buffer) createDataView
(ArrayBuffer buffer, int byteOffset) createDataView
(ArrayBuffer buffer, int byteOffset, int byteLength) createFloat32Array
(float[] array) createFloat32Array
(int length) createFloat32Array
(ArrayBuffer buffer) createFloat32Array
(ArrayBuffer buffer, int byteOffset) createFloat32Array
(ArrayBuffer buffer, int byteOffset, int length) createFloat64Array
(double[] array) createFloat64Array
(int length) createFloat64Array
(ArrayBuffer buffer) createFloat64Array
(ArrayBuffer buffer, int byteOffset) createFloat64Array
(ArrayBuffer buffer, int byteOffset, int length) createInt16Array
(int length) createInt16Array
(short[] array) createInt16Array
(ArrayBuffer buffer) createInt16Array
(ArrayBuffer buffer, int byteOffset) createInt16Array
(ArrayBuffer buffer, int byteOffset, int length) createInt32Array
(int length) createInt32Array
(int[] array) createInt32Array
(ArrayBuffer buffer) createInt32Array
(ArrayBuffer buffer, int byteOffset) createInt32Array
(ArrayBuffer buffer, int byteOffset, int length) createInt8Array
(byte[] array) createInt8Array
(int length) createInt8Array
(ArrayBuffer buffer) createInt8Array
(ArrayBuffer buffer, int byteOffset) createInt8Array
(ArrayBuffer buffer, int byteOffset, int length) createUint16Array
(int length) createUint16Array
(int[] array) createUint16Array
(ArrayBuffer buffer) createUint16Array
(ArrayBuffer buffer, int byteOffset) createUint16Array
(ArrayBuffer buffer, int byteOffset, int length) createUint32Array
(double[] array) createUint32Array
(int length) createUint32Array
(long[] array) createUint32Array
(ArrayBuffer buffer) createUint32Array
(ArrayBuffer buffer, int byteOffset) createUint32Array
(ArrayBuffer buffer, int byteOffset, int length) createUint8Array
(int length) createUint8Array
(short[] array) createUint8Array
(ArrayBuffer buffer) createUint8Array
(ArrayBuffer buffer, int byteOffset) createUint8Array
(ArrayBuffer buffer, int byteOffset, int length) createUint8ClampedArray
(int length) createUint8ClampedArray
(short[] array) createUint8ClampedArray
(ArrayBuffer buffer) createUint8ClampedArray
(ArrayBuffer buffer, int byteOffset) createUint8ClampedArray
(ArrayBuffer buffer, int byteOffset, int length) protected boolean
Check if the current environment actually does support typed arrays (including emulation).Methods inherited from class com.google.gwt.typedarrays.shared.TypedArrays.Impl
getElementCount, mightBeSupported
-
Constructor Details
-
NativeImpl
public NativeImpl()
-
-
Method Details
-
createArrayBuffer
- Specified by:
createArrayBuffer
in classTypedArrays.Impl
-
createFloat32Array
- Overrides:
createFloat32Array
in classTypedArrays.Impl
-
createFloat32Array
- Overrides:
createFloat32Array
in classTypedArrays.Impl
-
createFloat64Array
- Overrides:
createFloat64Array
in classTypedArrays.Impl
-
createFloat64Array
- Overrides:
createFloat64Array
in classTypedArrays.Impl
-
createInt16Array
- Overrides:
createInt16Array
in classTypedArrays.Impl
-
createInt16Array
- Overrides:
createInt16Array
in classTypedArrays.Impl
-
createInt32Array
- Overrides:
createInt32Array
in classTypedArrays.Impl
-
createInt32Array
- Overrides:
createInt32Array
in classTypedArrays.Impl
-
createInt8Array
- Overrides:
createInt8Array
in classTypedArrays.Impl
-
createInt8Array
- Overrides:
createInt8Array
in classTypedArrays.Impl
-
createUint16Array
- Overrides:
createUint16Array
in classTypedArrays.Impl
-
createUint16Array
- Overrides:
createUint16Array
in classTypedArrays.Impl
-
createUint32Array
- Overrides:
createUint32Array
in classTypedArrays.Impl
-
createUint32Array
- Overrides:
createUint32Array
in classTypedArrays.Impl
-
createUint32Array
- Overrides:
createUint32Array
in classTypedArrays.Impl
-
createUint8Array
- Overrides:
createUint8Array
in classTypedArrays.Impl
-
createUint8Array
- Overrides:
createUint8Array
in classTypedArrays.Impl
-
createUint8ClampedArray
- Overrides:
createUint8ClampedArray
in classTypedArrays.Impl
-
createUint8ClampedArray
- Overrides:
createUint8ClampedArray
in classTypedArrays.Impl
-
checkDataViewSupport
protected boolean checkDataViewSupport() -
checkUint8ClampedArraySupport
protected boolean checkUint8ClampedArraySupport() -
runtimeSupportCheck
protected boolean runtimeSupportCheck()Description copied from class:TypedArrays.Impl
Check if the current environment actually does support typed arrays (including emulation). There is no partial support, so if true is returned, there must be acceptable implementations for all of thecreateXXX
methods.- Overrides:
runtimeSupportCheck
in classTypedArrays.Impl
- Returns:
- true if the current environment actually does support typed arrays
-