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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected booleancreateArrayBuffer(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 booleanCheck 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:
createArrayBufferin classTypedArrays.Impl
-
createFloat32Array
- Overrides:
createFloat32Arrayin classTypedArrays.Impl
-
createFloat32Array
- Overrides:
createFloat32Arrayin classTypedArrays.Impl
-
createFloat64Array
- Overrides:
createFloat64Arrayin classTypedArrays.Impl
-
createFloat64Array
- Overrides:
createFloat64Arrayin classTypedArrays.Impl
-
createInt16Array
- Overrides:
createInt16Arrayin classTypedArrays.Impl
-
createInt16Array
- Overrides:
createInt16Arrayin classTypedArrays.Impl
-
createInt32Array
- Overrides:
createInt32Arrayin classTypedArrays.Impl
-
createInt32Array
- Overrides:
createInt32Arrayin classTypedArrays.Impl
-
createInt8Array
- Overrides:
createInt8Arrayin classTypedArrays.Impl
-
createInt8Array
- Overrides:
createInt8Arrayin classTypedArrays.Impl
-
createUint16Array
- Overrides:
createUint16Arrayin classTypedArrays.Impl
-
createUint16Array
- Overrides:
createUint16Arrayin classTypedArrays.Impl
-
createUint32Array
- Overrides:
createUint32Arrayin classTypedArrays.Impl
-
createUint32Array
- Overrides:
createUint32Arrayin classTypedArrays.Impl
-
createUint32Array
- Overrides:
createUint32Arrayin classTypedArrays.Impl
-
createUint8Array
- Overrides:
createUint8Arrayin classTypedArrays.Impl
-
createUint8Array
- Overrides:
createUint8Arrayin classTypedArrays.Impl
-
createUint8ClampedArray
- Overrides:
createUint8ClampedArrayin classTypedArrays.Impl
-
createUint8ClampedArray
- Overrides:
createUint8ClampedArrayin classTypedArrays.Impl
-
checkDataViewSupport
protected boolean checkDataViewSupport() -
checkUint8ClampedArraySupport
protected boolean checkUint8ClampedArraySupport() -
runtimeSupportCheck
protected boolean runtimeSupportCheck()Description copied from class:TypedArrays.ImplCheck 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 thecreateXXXmethods.- Overrides:
runtimeSupportCheckin classTypedArrays.Impl- Returns:
- true if the current environment actually does support typed arrays
-