Class DataViewNative
java.lang.Object
com.google.gwt.core.client.JavaScriptObject
com.google.gwt.typedarrays.client.ArrayBufferViewNative
com.google.gwt.typedarrays.client.DataViewNative
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DataViewcreate(ArrayBuffer buffer) static DataViewcreate(ArrayBuffer buffer, int byteOffset) static DataViewcreate(ArrayBuffer buffer, int byteOffset, int byteLength) 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.client.ArrayBufferViewNative
buffer, byteLength, byteOffsetMethods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.gwt.typedarrays.shared.ArrayBufferView
buffer, byteLength, byteOffset
-
Constructor Details
-
DataViewNative
protected DataViewNative()
-
-
Method Details
-
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
-
getInt16
-
getInt32
-
getInt32
-
getInt8
-
getUint16
-
getUint16
-
getUint32
-
getUint32
-
getUint32AsDouble
public double getUint32AsDouble(int byteOffset) - Specified by:
getUint32AsDoublein interfaceDataView- Parameters:
byteOffset-- Returns:
- unsigned 32-bit int as a double
-
getUint32AsDouble
public double getUint32AsDouble(int byteOffset, boolean littleEndian) - Specified by:
getUint32AsDoublein interfaceDataView- Parameters:
byteOffset-littleEndian-- Returns:
- unsigned 32-bit int as a double
-
getUint8
-
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
-
setInt16
-
setInt32
-
setInt32
-
setInt8
-
setUint16
-
setUint16
-
setUint32
-
setUint32
-
setUint32FromDouble
public void setUint32FromDouble(int byteOffset, double value) - Specified by:
setUint32FromDoublein interfaceDataView- Parameters:
byteOffset-value-
-
setUint32FromDouble
public void setUint32FromDouble(int byteOffset, double value, boolean littleEndian) - Specified by:
setUint32FromDoublein interfaceDataView- Parameters:
byteOffset-value-littleEndian-
-
setUint8