public class ArrayBufferViewBase extends ArrayBufferView
DataView
is not included.Constructor and Description |
---|
ArrayBufferViewBase() |
Modifier and Type | Method and Description |
---|---|
void |
constructor(Object object,
Object byteOffset,
Object length)
The constructor.
|
protected Object |
fromArray(byte[] array,
int offset)
Converts the provided byte array to number.
|
Object |
get(int index,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start) |
protected int |
getBytesPerElement()
Returns the size in bytes of an item in this array.
|
int |
getLength()
Returns the number of entries in the array.
|
void |
put(int index,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start,
Object value) |
void |
set(net.sourceforge.htmlunit.corejs.javascript.ScriptableObject sourceArray,
int offset)
Sets multiple values in the typed array, reading input values from a specified array.
|
ArrayBufferView |
subarray(int begin,
Object end)
Returns a new view on the ArrayBuffer store for this object.
|
protected byte[] |
toArray(Number number)
Converts the provided number to byte array.
|
constructor, getBuffer, getByteLength, getByteOffset, setBuffer, setByteLength
clone, equivalentValues, get, getBrowserVersion, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement
defineFunctionProperties, defineProperty, getClassName, setClassName, setParentScope
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, 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, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, size
public void constructor(Object object, Object byteOffset, Object length)
object
- the objectbyteOffset
- optional byteOffsetlength
- optional lengthpublic int getLength()
public void set(net.sourceforge.htmlunit.corejs.javascript.ScriptableObject sourceArray, int offset)
sourceArray
- the source arrayoffset
- the offset into the target array at which to begin writing values from the source onepublic Object get(int index, net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
get
in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
get
in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
public void put(int index, net.sourceforge.htmlunit.corejs.javascript.Scriptable start, Object value)
put
in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
put
in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
protected byte[] toArray(Number number)
number
- the numberprotected Object fromArray(byte[] array, int offset)
array
- the arrayoffset
- the offsetpublic ArrayBufferView subarray(int begin, Object end)
begin
- the offset to the first element in the array to be referenced by the new objectend
- the end offset (exclusive), optional to return at the end.protected int getBytesPerElement()
Copyright © 2002–2016 Gargoyle Software Inc.. All rights reserved.