public class DataView extends ArrayBufferView
ArrayBuffer's data.| Constructor and Description |
|---|
DataView() |
| Modifier and Type | Method and Description |
|---|---|
void |
constructor(ArrayBuffer array,
int byteOffset,
Object length)
JavaScript constructor.
|
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.
|
constructor, getBuffer, getByteLength, getByteOffset, setBuffer, setByteLengthclone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setClassName, setDomNode, setDomNode, setHtmlElement, setParentScopeapplyDescriptorToAttributeBitset, 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, getExternalArrayData, getExternalArrayLength, 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, setExternalArrayData, setGetterOrSetter, setPrototype, sizepublic void constructor(ArrayBuffer array, int byteOffset, Object length)
array - the arraybyteOffset - the byte offsetlength - the lengthpublic byte getInt8(int byteOffset)
byteOffset - the byte offsetpublic void setInt8(int byteOffset,
int value)
byteOffset - the byte offsetvalue - the valuepublic short getInt16(int byteOffset,
boolean littleEndian)
byteOffset - the byte offsetlittleEndian - whether the value is stored in little- or big-endian formatpublic void setInt16(int byteOffset,
int value,
boolean littleEndian)
byteOffset - the byte offsetvalue - the valuelittleEndian - whether the value is stored in little- or big-endian formatpublic int getInt32(int byteOffset,
boolean littleEndian)
byteOffset - the byte offsetlittleEndian - whether the value is stored in little- or big-endian formatpublic 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 offsetpublic void setUint8(int byteOffset,
int value)
byteOffset - the byte offsetvalue - the valuepublic int getUint16(int byteOffset,
boolean littleEndian)
byteOffset - the byte offsetlittleEndian - whether the value is stored in little- or big-endian formatpublic void setUint16(int byteOffset,
int value,
boolean littleEndian)
byteOffset - the byte offsetvalue - the valuelittleEndian - whether the value is stored in little- or big-endian formatpublic long getUint32(int byteOffset,
boolean littleEndian)
byteOffset - the byte offsetlittleEndian - whether the value is stored in little- or big-endian formatpublic void setUint32(int byteOffset,
int value,
boolean littleEndian)
byteOffset - the byte offsetvalue - the valuelittleEndian - whether the value is stored in little- or big-endian formatpublic float getFloat32(int byteOffset,
boolean littleEndian)
byteOffset - the byte offsetlittleEndian - whether the value is stored in little- or big-endian formatpublic void setFloat32(int byteOffset,
double value,
boolean littleEndian)
byteOffset - the byte offsetvalue - the valuelittleEndian - whether the value is stored in little- or big-endian formatpublic double getFloat64(int byteOffset,
boolean littleEndian)
byteOffset - the byte offsetlittleEndian - whether the value is stored in little- or big-endian formatpublic void setFloat64(int byteOffset,
double value,
boolean littleEndian)
byteOffset - the byte offsetvalue - the valuelittleEndian - whether the value is stored in little- or big-endian formatCopyright © 2002–2015 Gargoyle Software Inc.. All rights reserved.