Class DataViewImpl
- java.lang.Object
-
- com.google.gwt.typedarrays.server.ArrayBufferViewImpl
-
- com.google.gwt.typedarrays.server.DataViewImpl
-
- All Implemented Interfaces:
ArrayBufferView,DataView
public class DataViewImpl extends ArrayBufferViewImpl implements DataView
Pure Java implementation ofDataView.
-
-
Field Summary
-
Fields inherited from class com.google.gwt.typedarrays.server.ArrayBufferViewImpl
arrayBuf, byteLength, byteOffset, USE_LITTLE_ENDIAN
-
-
Constructor Summary
Constructors Constructor Description DataViewImpl(ArrayBuffer buffer, int byteOffset, int byteLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetFloat32(int byteOffset)floatgetFloat32(int byteOffset, boolean littleEndian)doublegetFloat64(int byteOffset)doublegetFloat64(int byteOffset, boolean littleEndian)shortgetInt16(int byteOffset)shortgetInt16(int byteOffset, boolean littleEndian)intgetInt32(int byteOffset)intgetInt32(int byteOffset, boolean littleEndian)bytegetInt8(int byteOffset)intgetUint16(int byteOffset)intgetUint16(int byteOffset, boolean littleEndian)longgetUint32(int byteOffset)longgetUint32(int byteOffset, boolean littleEndian)doublegetUint32AsDouble(int byteOffset)doublegetUint32AsDouble(int byteOffset, boolean littleEndian)shortgetUint8(int byteOffset)voidsetFloat32(int byteOffset, float value)voidsetFloat32(int byteOffset, float value, boolean littleEndian)voidsetFloat64(int byteOffset, double value)voidsetFloat64(int byteOffset, double value, boolean littleEndian)voidsetInt16(int byteOffset, int value)voidsetInt16(int byteOffset, int value, boolean littleEndian)voidsetInt32(int byteOffset, int value)voidsetInt32(int byteOffset, int value, boolean littleEndian)voidsetInt8(int byteOffset, int value)voidsetUint16(int byteOffset, int value)voidsetUint16(int byteOffset, int value, boolean littleEndian)voidsetUint32(int byteOffset, long value)voidsetUint32(int byteOffset, long value, boolean littleEndian)voidsetUint32FromDouble(int byteOffset, double value)voidsetUint32FromDouble(int byteOffset, double value, boolean littleEndian)voidsetUint8(int byteOffset, int value)-
Methods inherited from class com.google.gwt.typedarrays.server.ArrayBufferViewImpl
buffer, byteLength, byteOffset, checkRange
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.gwt.typedarrays.shared.ArrayBufferView
buffer, byteLength, byteOffset
-
-
-
-
Constructor Detail
-
DataViewImpl
public DataViewImpl(ArrayBuffer buffer, int byteOffset, int byteLength)
- Parameters:
buffer-byteOffset-byteLength-
-
-
Method Detail
-
getFloat32
public float getFloat32(int byteOffset)
- Specified by:
getFloat32in interfaceDataView
-
getFloat32
public float getFloat32(int byteOffset, boolean littleEndian)- Specified by:
getFloat32in interfaceDataView
-
getFloat64
public double getFloat64(int byteOffset)
- Specified by:
getFloat64in interfaceDataView
-
getFloat64
public double getFloat64(int byteOffset, boolean littleEndian)- Specified by:
getFloat64in interfaceDataView
-
getInt16
public short getInt16(int byteOffset, boolean littleEndian)
-
getInt32
public int getInt32(int byteOffset, boolean littleEndian)
-
getUint16
public int getUint16(int byteOffset, boolean littleEndian)
-
getUint32
public long getUint32(int byteOffset, boolean littleEndian)
-
getUint32AsDouble
public double getUint32AsDouble(int byteOffset)
- Specified by:
getUint32AsDoublein interfaceDataView- Returns:
- unsigned 32-bit int as a double
-
getUint32AsDouble
public double getUint32AsDouble(int byteOffset, boolean littleEndian)- Specified by:
getUint32AsDoublein interfaceDataView- Returns:
- unsigned 32-bit int as a double
-
setFloat32
public void setFloat32(int byteOffset, float value)- Specified by:
setFloat32in interfaceDataView
-
setFloat32
public void setFloat32(int byteOffset, float value, boolean littleEndian)- Specified by:
setFloat32in interfaceDataView
-
setFloat64
public void setFloat64(int byteOffset, double value)- Specified by:
setFloat64in interfaceDataView
-
setFloat64
public void setFloat64(int byteOffset, double value, boolean littleEndian)- Specified by:
setFloat64in interfaceDataView
-
setInt16
public void setInt16(int byteOffset, int value)
-
setInt16
public void setInt16(int byteOffset, int value, boolean littleEndian)
-
setInt32
public void setInt32(int byteOffset, int value)
-
setInt32
public void setInt32(int byteOffset, int value, boolean littleEndian)
-
setUint16
public void setUint16(int byteOffset, int value)
-
setUint16
public void setUint16(int byteOffset, int value, boolean littleEndian)
-
setUint32
public void setUint32(int byteOffset, long value)
-
setUint32
public void setUint32(int byteOffset, long value, boolean littleEndian)
-
setUint32FromDouble
public void setUint32FromDouble(int byteOffset, double value)- Specified by:
setUint32FromDoublein interfaceDataView
-
setUint32FromDouble
public void setUint32FromDouble(int byteOffset, double value, boolean littleEndian)- Specified by:
setUint32FromDoublein interfaceDataView
-
-