public class Uint16Array extends ArrayBufferViewBase
| Modifier and Type | Field and Description |
|---|---|
static int |
BYTES_PER_ELEMENT
The size, in bytes, of each array element.
|
| Constructor and Description |
|---|
Uint16Array() |
| 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.
|
protected int |
getBytesPerElement()
Returns the size in bytes of an item in this array.
|
protected byte[] |
toArray(Number number)
Converts the provided number to byte array.
|
get, getLength, put, set, subarrayconstructor, 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, 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, sizepublic static final int BYTES_PER_ELEMENT
public void constructor(Object object, Object byteOffset, Object length)
constructor in class ArrayBufferViewBaseobject - the objectbyteOffset - optional byteOffsetlength - optional lengthprotected byte[] toArray(Number number)
toArray in class ArrayBufferViewBasenumber - the numberprotected Object fromArray(byte[] array, int offset)
fromArray in class ArrayBufferViewBasearray - the arrayoffset - the offsetprotected int getBytesPerElement()
getBytesPerElement in class ArrayBufferViewBaseCopyright © 2002–2015 Gargoyle Software Inc.. All rights reserved.