|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.htmlunit.corejs.javascript.ScriptableObject
com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
com.gargoylesoftware.htmlunit.javascript.host.arrays.ArrayBufferView
com.gargoylesoftware.htmlunit.javascript.host.arrays.DataView
public class DataView
The ArrayBufferView type describes a particular view on the contents of an ArrayBuffer's data.
| Field Summary |
|---|
| Fields inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
|---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
| Fields inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable |
|---|
NOT_FOUND |
| Constructor Summary | |
|---|---|
DataView()
|
|
| Method Summary | |
|---|---|
protected void |
constructor(ArrayBuffer array,
int byteOffset,
Object length)
|
float |
getFloat32(int byteOffset,
boolean littleEndian)
Gets a 32-bit floating point number at the specified byte offset from the start of the view. |
double |
getFloat64(int byteOffset,
boolean littleEndian)
Gets a 64-bit floating point number at the specified byte offset from the start of the view. |
short |
getInt16(int byteOffset,
boolean littleEndian)
Gets a signed 16-bit integer at the specified byte offset from the start of the view. |
int |
getInt32(int byteOffset,
boolean littleEndian)
Gets a signed 32-bit integer at the specified byte offset from the start of the view. |
byte |
getInt8(int byteOffset)
Gets a signed 8-bit integer at the specified byte offset from the start of the view. |
int |
getUint16(int byteOffset,
boolean littleEndian)
Gets an unsigned 16-bit integer at the specified byte offset from the start of the view. |
long |
getUint32(int byteOffset,
boolean littleEndian)
Gets an unsigned 32-bit integer at the specified byte offset from the start of the view. |
int |
getUint8(int byteOffset)
Gets an unsigned 8-bit integer at the specified byte offset from the start of the view. |
void |
setFloat32(int byteOffset,
double value,
boolean littleEndian)
Sets the given 32-bit floating point number at the specified offset. |
void |
setFloat64(int byteOffset,
double value,
boolean littleEndian)
Sets the given 32-bit floating point number at the specified offset. |
void |
setInt16(int byteOffset,
int value,
boolean littleEndian)
Sets the given signed 16-bit integer at the specified offset. |
void |
setInt32(int byteOffset,
int value,
boolean littleEndian)
Sets the given signed 32-bit integer at the specified offset. |
void |
setInt8(int byteOffset,
int value)
Sets the given signed 8-bit integer at the specified offset. |
void |
setUint16(int byteOffset,
int value,
boolean littleEndian)
Sets the given unsigned 16-bit integer at the specified offset. |
void |
setUint32(int byteOffset,
int value,
boolean littleEndian)
Sets the given unsigned 32-bit integer at the specified offset. |
void |
setUint8(int byteOffset,
int value)
Sets the given unsigned 8-bit integer at the specified offset. |
| Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.arrays.ArrayBufferView |
|---|
constructor, getBuffer, getByteLength, getByteOffset, setBuffer, setByteLength |
| Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable |
|---|
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement |
| Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
|---|
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, size |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataView()
| Method Detail |
|---|
protected void constructor(ArrayBuffer array,
int byteOffset,
Object length)
public byte getInt8(int byteOffset)
byteOffset - the byte offset
public void setInt8(int byteOffset,
int value)
byteOffset - the byte offsetvalue - the value
public short getInt16(int byteOffset,
boolean littleEndian)
byteOffset - the byte offsetlittleEndian - whether the value is stored in little- or big-endian format
public void setInt16(int byteOffset,
int value,
boolean littleEndian)
byteOffset - the byte offsetvalue - the valuelittleEndian - whether the value is stored in little- or big-endian format
public int getInt32(int byteOffset,
boolean littleEndian)
byteOffset - the byte offsetlittleEndian - whether the value is stored in little- or big-endian format
public void setInt32(int byteOffset,
int value,
boolean littleEndian)
byteOffset - the byte offsetvalue - the valuelittleEndian - whether the value is stored in little- or big-endian formatpublic int getUint8(int byteOffset)
byteOffset - the byte offset
public void setUint8(int byteOffset,
int value)
byteOffset - the byte offsetvalue - the value
public int getUint16(int byteOffset,
boolean littleEndian)
byteOffset - the byte offsetlittleEndian - whether the value is stored in little- or big-endian format
public void setUint16(int byteOffset,
int value,
boolean littleEndian)
byteOffset - the byte offsetvalue - the valuelittleEndian - whether the value is stored in little- or big-endian format
public long getUint32(int byteOffset,
boolean littleEndian)
byteOffset - the byte offsetlittleEndian - whether the value is stored in little- or big-endian format
public void setUint32(int byteOffset,
int value,
boolean littleEndian)
byteOffset - the byte offsetvalue - the valuelittleEndian - whether the value is stored in little- or big-endian format
public float getFloat32(int byteOffset,
boolean littleEndian)
byteOffset - the byte offsetlittleEndian - whether the value is stored in little- or big-endian format
public void setFloat32(int byteOffset,
double value,
boolean littleEndian)
byteOffset - the byte offsetvalue - the valuelittleEndian - whether the value is stored in little- or big-endian format
public double getFloat64(int byteOffset,
boolean littleEndian)
byteOffset - the byte offsetlittleEndian - whether the value is stored in little- or big-endian format
public void setFloat64(int byteOffset,
double value,
boolean littleEndian)
byteOffset - the byte offsetvalue - the valuelittleEndian - whether the value is stored in little- or big-endian format
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||