Overview | Package | Class | Use | Deprecated | Help
| GWT 2.7.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.google.gwt.typedarrays.shared
Class TypedArrays.Impl

    java.lang.Object
      com.google.gwt.typedarrays.shared.TypedArrays.Impl

Direct Known Subclasses:
  JavaImpl, NativeImpl, NoSupportImpl

Enclosing class:
  TypedArrays

    public abstract static class TypedArrays.Impl

extends java.lang.Object

Base class of implementations for creating various typed array structures.

*** NOT A PUBLIC API ***

Constructor Summary
`TypedArrays.Impl()`

Method Summary
`abstract ArrayBuffer` | `createArrayBuffer(int length)`
`DataView` | `createDataView(ArrayBuffer buffer)`
`DataView` | `createDataView(ArrayBuffer buffer, int offset)`
`abstract DataView` | `createDataView(ArrayBuffer buffer, int byteOffset, int byteLength)`
`Float32Array` | `createFloat32Array(ArrayBuffer buffer)`
`Float32Array` | `createFloat32Array(ArrayBuffer buffer, int byteOffset)`
`abstract Float32Array` | `createFloat32Array(ArrayBuffer buffer, int byteOffset, int length)`
`Float32Array` | `createFloat32Array(float[] array)`
`Float32Array` | `createFloat32Array(int length)`
`Float64Array` | `createFloat64Array(ArrayBuffer buffer)`
`Float64Array` | `createFloat64Array(ArrayBuffer buffer, int byteOffset)`
`abstract Float64Array` | `createFloat64Array(ArrayBuffer buffer, int byteOffset, int length)`
`Float64Array` | `createFloat64Array(double[] array)`
`Float64Array` | `createFloat64Array(int length)`
`Int16Array` | `createInt16Array(ArrayBuffer buffer)`
`Int16Array` | `createInt16Array(ArrayBuffer buffer, int byteOffset)`
`abstract Int16Array` | `createInt16Array(ArrayBuffer buffer, int byteOffset, int length)`
`Int16Array` | `createInt16Array(int length)`
`Int16Array` | `createInt16Array(short[] array)`
`Int32Array` | `createInt32Array(ArrayBuffer buffer)`
`Int32Array` | `createInt32Array(ArrayBuffer buffer, int byteOffset)`
`abstract Int32Array` | `createInt32Array(ArrayBuffer buffer, int byteOffset, int length)`
`Int32Array` | `createInt32Array(int length)`
`Int32Array` | `createInt32Array(int[] array)`
`Int8Array` | `createInt8Array(ArrayBuffer buffer)`
`Int8Array` | `createInt8Array(ArrayBuffer buffer, int byteOffset)`
`abstract Int8Array` | `createInt8Array(ArrayBuffer buffer, int byteOffset, int length)`
`Int8Array` | `createInt8Array(byte[] array)`
`Int8Array` | `createInt8Array(int length)`
`Uint16Array` | `createUint16Array(ArrayBuffer buffer)`
`Uint16Array` | `createUint16Array(ArrayBuffer buffer, int byteOffset)`
`abstract Uint16Array` | `createUint16Array(ArrayBuffer buffer, int byteOffset, int length)`
`Uint16Array` | `createUint16Array(int length)`
`Uint16Array` | `createUint16Array(int[] array)`
`Uint32Array` | `createUint32Array(ArrayBuffer buffer)`
`Uint32Array` | `createUint32Array(ArrayBuffer buffer, int byteOffset)`
`abstract Uint32Array` | `createUint32Array(ArrayBuffer buffer, int byteOffset, int length)`
`Uint32Array` | `createUint32Array(double[] array)`
`Uint32Array` | `createUint32Array(int length)`
`Uint32Array` | `createUint32Array(long[] array)`
`Uint8Array` | `createUint8Array(ArrayBuffer buffer)`
`Uint8Array` | `createUint8Array(ArrayBuffer buffer, int byteOffset)`
`abstract Uint8Array` | `createUint8Array(ArrayBuffer buffer, int byteOffset, int length)`
`Uint8Array` | `createUint8Array(int length)`
`Uint8Array` | `createUint8Array(short[] array)`
`Uint8ClampedArray` | `createUint8ClampedArray(ArrayBuffer buffer)`
`Uint8ClampedArray` | `createUint8ClampedArray(ArrayBuffer buffer, int byteOffset)`
`abstract Uint8ClampedArray` | `createUint8ClampedArray(ArrayBuffer buffer, int byteOffset, int length)`
`Uint8ClampedArray` | `createUint8ClampedArray(int length)`
`Uint8ClampedArray` | `createUint8ClampedArray(short[] array)`
`protected static int` | `getElementCount(int byteLength, int elemLength)` Get the number of elements in a number of bytes, throwing an exception if it isn't an integral number.
`protected boolean` | `mightBeSupported()` Check if the current environment might possibly support typed arrays.
`protected boolean` | `runtimeSupportCheck()` Check if the current environment actually does support typed arrays (including emulation).

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### TypedArrays.Impl

    public TypedArrays.Impl()

Method Detail

### getElementCount

    protected static int getElementCount(int byteLength,
                                         int elemLength)

  Get the number of elements in a number of bytes, throwing an exception if it isn't an integral number.

  Parameters:
    `byteLength` -
    `elemLength` - length of each element in bytes
  Returns:
    count of elements
  Throws:
    `java.lang.IllegalArgumentException` - if `byteLength` isn't an integral multiple of `elemLength`

### createArrayBuffer

    public abstract ArrayBuffer createArrayBuffer(int length)

### createDataView

    public DataView createDataView(ArrayBuffer buffer)

### createDataView

    public DataView createDataView(ArrayBuffer buffer,
                                   int offset)

### createDataView

    public abstract DataView createDataView(ArrayBuffer buffer,
                                            int byteOffset,
                                            int byteLength)

### createFloat32Array

    public Float32Array createFloat32Array(ArrayBuffer buffer)

### createFloat32Array

    public Float32Array createFloat32Array(ArrayBuffer buffer,
                                           int byteOffset)

### createFloat32Array

    public abstract Float32Array createFloat32Array(ArrayBuffer buffer,
                                                    int byteOffset,
                                                    int length)

### createFloat32Array

    public Float32Array createFloat32Array(float[] array)

### createFloat32Array

    public Float32Array createFloat32Array(int length)

### createFloat64Array

    public Float64Array createFloat64Array(ArrayBuffer buffer)

### createFloat64Array

    public Float64Array createFloat64Array(ArrayBuffer buffer,
                                           int byteOffset)

### createFloat64Array

    public abstract Float64Array createFloat64Array(ArrayBuffer buffer,
                                                    int byteOffset,
                                                    int length)

### createFloat64Array

    public Float64Array createFloat64Array(double[] array)

### createFloat64Array

    public Float64Array createFloat64Array(int length)

### createInt16Array

    public Int16Array createInt16Array(ArrayBuffer buffer)

### createInt16Array

    public Int16Array createInt16Array(ArrayBuffer buffer,
                                       int byteOffset)

### createInt16Array

    public abstract Int16Array createInt16Array(ArrayBuffer buffer,
                                                int byteOffset,
                                                int length)

### createInt16Array

    public Int16Array createInt16Array(int length)

### createInt16Array

    public Int16Array createInt16Array(short[] array)

### createInt32Array

    public Int32Array createInt32Array(ArrayBuffer buffer)

### createInt32Array

    public Int32Array createInt32Array(ArrayBuffer buffer,
                                       int byteOffset)

### createInt32Array

    public abstract Int32Array createInt32Array(ArrayBuffer buffer,
                                                int byteOffset,
                                                int length)

### createInt32Array

    public Int32Array createInt32Array(int length)

### createInt32Array

    public Int32Array createInt32Array(int[] array)

### createInt8Array

    public Int8Array createInt8Array(ArrayBuffer buffer)

### createInt8Array

    public Int8Array createInt8Array(ArrayBuffer buffer,
                                     int byteOffset)

### createInt8Array

    public abstract Int8Array createInt8Array(ArrayBuffer buffer,
                                              int byteOffset,
                                              int length)

### createInt8Array

    public Int8Array createInt8Array(byte[] array)

### createInt8Array

    public Int8Array createInt8Array(int length)

### createUint16Array

    public Uint16Array createUint16Array(ArrayBuffer buffer)

### createUint16Array

    public Uint16Array createUint16Array(ArrayBuffer buffer,
                                         int byteOffset)

### createUint16Array

    public abstract Uint16Array createUint16Array(ArrayBuffer buffer,
                                                  int byteOffset,
                                                  int length)

### createUint16Array

    public Uint16Array createUint16Array(int length)

### createUint16Array

    public Uint16Array createUint16Array(int[] array)

### createUint32Array

    public Uint32Array createUint32Array(ArrayBuffer buffer)

### createUint32Array

    public Uint32Array createUint32Array(ArrayBuffer buffer,
                                         int byteOffset)

### createUint32Array

    public abstract Uint32Array createUint32Array(ArrayBuffer buffer,
                                                  int byteOffset,
                                                  int length)

### createUint32Array

    public Uint32Array createUint32Array(double[] array)

### createUint32Array

    public Uint32Array createUint32Array(int length)

### createUint32Array

    public Uint32Array createUint32Array(long[] array)

### createUint8Array

    public Uint8Array createUint8Array(ArrayBuffer buffer)

### createUint8Array

    public Uint8Array createUint8Array(ArrayBuffer buffer,
                                       int byteOffset)

### createUint8Array

    public abstract Uint8Array createUint8Array(ArrayBuffer buffer,
                                                int byteOffset,
                                                int length)

### createUint8Array

    public Uint8Array createUint8Array(int length)

### createUint8Array

    public Uint8Array createUint8Array(short[] array)

### createUint8ClampedArray

    public Uint8ClampedArray createUint8ClampedArray(ArrayBuffer buffer)

### createUint8ClampedArray

    public Uint8ClampedArray createUint8ClampedArray(ArrayBuffer buffer,
                                                     int byteOffset)

### createUint8ClampedArray

    public abstract Uint8ClampedArray createUint8ClampedArray(ArrayBuffer buffer,
                                                              int byteOffset,
                                                              int length)

### createUint8ClampedArray

    public Uint8ClampedArray createUint8ClampedArray(int length)

### createUint8ClampedArray

    public Uint8ClampedArray createUint8ClampedArray(short[] array)

### mightBeSupported

    protected boolean mightBeSupported()

  Check if the current environment might possibly support typed arrays.

  The default implementation always returns true, and this is intended to be a static check based on deffered-bound parameters.

  Returns:
    true if the current environment might possibly support typed arrays

### runtimeSupportCheck

    protected boolean runtimeSupportCheck()

  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 the `createXXX` methods.

  Returns:
    true if the current environment actually does support typed arrays

Overview | Package | Class | Use | Deprecated | Help
| GWT 2.7.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD