@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="DataView")
public class DataView
extends JsObject
implements ArrayBufferView
| Constructor and Description |
|---|
DataView(ArrayBuffer buffer)
The DataView() constructor is used to create DataView objects.
|
DataView(ArrayBuffer buffer,
int byteOffset)
The DataView() constructor is used to create DataView objects.
|
DataView(ArrayBuffer buffer,
int byteOffset,
int byteLength)
The DataView() constructor is used to create DataView objects.
|
DataView(SharedArrayBuffer buffer)
The DataView() constructor is used to create DataView objects.
|
DataView(SharedArrayBuffer buffer,
int byteOffset)
The DataView() constructor is used to create DataView objects.
|
DataView(SharedArrayBuffer buffer,
int byteOffset,
int byteLength)
The DataView() constructor is used to create DataView objects.
|
| Modifier and Type | Method and Description |
|---|---|
ArrayBuffer |
buffer()
The buffer accessor property represents the ArrayBuffer or SharedArrayBuffer referenced by the DataView at construction time.
|
int |
byteLength()
The byteLength accessor property represents the length (in bytes) of the dataview.
|
int |
byteOffset()
The byteOffset accessor property represents the offset (in bytes) of this view from the start of its ArrayBuffer or SharedArrayBuffer.
|
float |
getFloat32(int byteOffset)
The getFloat32() method gets a signed 32-bit float (float) at the specified byte offset from the start of the DataView.
|
float |
getFloat32(int byteOffset,
boolean littleEndian)
The getFloat32() method gets a signed 32-bit float (float) at the specified byte offset from the start of the DataView.
|
double |
getFloat64(int byteOffset)
The getFloat64() method gets a signed 64-bit float (double) at the specified byte offset from the start of the DataView.
|
double |
getFloat64(int byteOffset,
boolean littleEndian)
The getFloat64() method gets a signed 64-bit float (double) at the specified byte offset from the start of the DataView.
|
short |
getInt16(int byteOffset)
The getInt16() method gets a signed 16-bit integer (short) at the specified byte offset from the start of the DataView.
|
short |
getInt16(int byteOffset,
boolean littleEndian)
The getInt16() method gets a signed 16-bit integer (short) at the specified byte offset from the start of the DataView.
|
int |
getInt32(int byteOffset)
The getInt32() method gets a signed 32-bit integer (long) at the specified byte offset from the start of the DataView.
|
int |
getInt32(int byteOffset,
boolean littleEndian)
The getInt32() method gets a signed 32-bit integer (long) at the specified byte offset from the start of the DataView.
|
byte |
getInt8(int byteOffset)
The getInt8() method gets a signed 8-bit integer (byte) at the specified byte offset from the start of the DataView.
|
int |
getUint16(int byteOffset)
The getUint16() method gets an unsigned 16-bit integer (unsigned short) at the specified byte offset from the start of the DataView.
|
int |
getUint16(int byteOffset,
boolean littleEndian)
The getUint16() method gets an unsigned 16-bit integer (unsigned short) at the specified byte offset from the start of the DataView.
|
int |
getUint32(int byteOffset)
The getUint32() method gets an unsigned 32-bit integer (unsigned long) at the specified byte offset from the start of the DataView.
|
int |
getUint32(int byteOffset,
boolean littleEndian)
The getUint32() method gets an unsigned 32-bit integer (unsigned long) at the specified byte offset from the start of the DataView.
|
short |
getUint8(int byteOffset)
The getUint8() method gets an unsigned 8-bit integer (unsigned byte) at the specified byte offset from the start of the DataView.
|
void |
setFloat32(int byteOffset,
float value)
The setFloat32() method stores a signed 32-bit float (float) value at the specified byte offset from the start of the DataView.
|
void |
setFloat32(int byteOffset,
float value,
boolean littleEndian)
The setFloat32() method stores a signed 32-bit float (float) value at the specified byte offset from the start of the DataView.
|
void |
setFloat64(int byteOffset,
double value)
The setFloat64() method stores a signed 64-bit float (double) value at the specified byte offset from the start of the DataView.
|
void |
setFloat64(int byteOffset,
double value,
boolean littleEndian)
The setFloat64() method stores a signed 64-bit float (double) value at the specified byte offset from the start of the DataView.
|
void |
setInt16(int byteOffset,
int value)
The setInt16() method stores a signed 16-bit integer (short) value at the specified byte offset from the start of the DataView.
|
void |
setInt16(int byteOffset,
int value,
boolean littleEndian)
The setInt16() method stores a signed 16-bit integer (short) value at the specified byte offset from the start of the DataView.
|
void |
setInt32(int byteOffset,
int value)
The setInt32() method stores a signed 32-bit integer (long) value at the specified byte offset from the start of the DataView.
|
void |
setInt32(int byteOffset,
int value,
boolean littleEndian)
The setInt32() method stores a signed 32-bit integer (long) value at the specified byte offset from the start of the DataView.
|
void |
setInt8(int byteOffset,
byte value)
The setInt8() method stores a signed 8-bit integer (byte) value at the specified byte offset from the start of the DataView.
|
void |
setUint16(int byteOffset,
int value)
The setUint16() method stores an unsigned 16-bit integer (unsigned short) value at the specified byte offset from the start of the DataView.
|
void |
setUint16(int byteOffset,
int value,
boolean littleEndian)
The setUint16() method stores an unsigned 16-bit integer (unsigned short) value at the specified byte offset from the start of the DataView.
|
void |
setUint32(int byteOffset,
int value)
The setUint32() method stores an unsigned 32-bit integer (unsigned long) value at the specified byte offset from the start of the DataView.
|
void |
setUint32(int byteOffset,
int value,
boolean littleEndian)
The setUint32() method stores an unsigned 32-bit integer (unsigned long) value at the specified byte offset from the start of the DataView.
|
void |
setUint8(int byteOffset,
int value)
The setUint8() method stores an unsigned 8-bit integer (byte) value at the specified byte offset from the start of the DataView.
|
java.lang.String |
toString_()
The valueOf() method returns the wrapped primitive value of a Number object.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, valueOf_, valuespublic DataView(@Nonnull
ArrayBuffer buffer,
int byteOffset,
int byteLength)
public DataView(@Nonnull
ArrayBuffer buffer,
int byteOffset)
public DataView(@Nonnull
ArrayBuffer buffer)
public DataView(@Nonnull
SharedArrayBuffer buffer,
int byteOffset,
int byteLength)
public DataView(@Nonnull
SharedArrayBuffer buffer,
int byteOffset)
public DataView(@Nonnull
SharedArrayBuffer buffer)
@JsProperty(name="buffer") @Nonnull public ArrayBuffer buffer()
buffer in interface ArrayBufferView@JsProperty(name="byteLength") public int byteLength()
byteLength in interface ArrayBufferView@JsProperty(name="byteOffset") public int byteOffset()
byteOffset in interface ArrayBufferView@JsMethod(name="toString") @Nonnull public java.lang.String toString_()
JsObjecttoString_ in class JsObjectpublic byte getInt8(int byteOffset)
public short getUint8(int byteOffset)
public short getInt16(int byteOffset,
boolean littleEndian)
public short getInt16(int byteOffset)
public int getUint16(int byteOffset,
boolean littleEndian)
public int getUint16(int byteOffset)
public int getInt32(int byteOffset,
boolean littleEndian)
public int getInt32(int byteOffset)
public int getUint32(int byteOffset,
boolean littleEndian)
public int getUint32(int byteOffset)
public float getFloat32(int byteOffset,
boolean littleEndian)
public float getFloat32(int byteOffset)
public double getFloat64(int byteOffset,
boolean littleEndian)
public double getFloat64(int byteOffset)
public void setInt8(int byteOffset,
byte value)
public void setUint8(int byteOffset,
int value)
public void setInt16(int byteOffset,
int value,
boolean littleEndian)
public void setInt16(int byteOffset,
int value)
public void setUint16(int byteOffset,
int value,
boolean littleEndian)
public void setUint16(int byteOffset,
int value)
public void setInt32(int byteOffset,
int value,
boolean littleEndian)
public void setInt32(int byteOffset,
int value)
public void setUint32(int byteOffset,
int value,
boolean littleEndian)
public void setUint32(int byteOffset,
int value)
public void setFloat32(int byteOffset,
float value,
boolean littleEndian)
public void setFloat32(int byteOffset,
float value)
public void setFloat64(int byteOffset,
double value,
boolean littleEndian)
public void setFloat64(int byteOffset,
double value)