Class NativeUint32Array
java.lang.Object
org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.corejs.javascript.IdScriptableObject
org.htmlunit.corejs.javascript.typedarrays.NativeArrayBufferView
org.htmlunit.corejs.javascript.typedarrays.NativeTypedArrayView<Long>
org.htmlunit.corejs.javascript.typedarrays.NativeUint32Array
- All Implemented Interfaces:
Serializable,Iterable<Long>,Collection<Long>,List<Long>,RandomAccess,SequencedCollection<Long>,ConstProperties,DebuggableObject,ExternalArrayData,IdFunctionCall,Scriptable,SymbolScriptable
An array view that stores 32-bit quantities and implements the JavaScript "Uint32Array"
interface. It also implements List<Long> for direct manipulation in Java.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject
ScriptableObject.KeyComparator -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final Stringprivate static final longFields inherited from class org.htmlunit.corejs.javascript.typedarrays.NativeTypedArrayView
length, MAX_PROTOTYPE_IDFields inherited from class org.htmlunit.corejs.javascript.typedarrays.NativeArrayBufferView
arrayBuffer, byteLength, offsetFields inherited from class org.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTFields inherited from interface org.htmlunit.corejs.javascript.Scriptable
NOT_FOUND -
Constructor Summary
ConstructorsConstructorDescriptionNativeUint32Array(int len) NativeUint32Array(NativeArrayBuffer ab, int off, int len) -
Method Summary
Modifier and TypeMethodDescriptionprotected NativeUint32Arrayconstruct(NativeArrayBuffer ab, int off, int len) get(int i) intReturn the number of bytes represented by each element in the array.Return the name of the class.static voidinit(Context cx, Scriptable scope, boolean sealed) protected Objectjs_get(int index) protected Objectprotected NativeUint32ArrayrealThis(Scriptable thisObj, IdFunctionObject f) Methods inherited from class org.htmlunit.corejs.javascript.typedarrays.NativeTypedArrayView
add, add, addAll, addAll, checkIndex, clear, contains, containsAll, delete, delete, equals, execIdCall, fillConstructorProperties, findInstanceIdInfo, findPrototypeId, findPrototypeId, get, get, getArrayElement, getArrayLength, getIds, getInstanceIdName, getInstanceIdValue, getMaxInstanceId, has, has, hashCode, indexOf, initPrototypeId, isEmpty, iterator, lastIndexOf, listIterator, listIterator, put, put, remove, remove, removeAll, retainAll, setArrayElement, size, subList, toArray, toArrayMethods inherited from class org.htmlunit.corejs.javascript.typedarrays.NativeArrayBufferView
get, getBuffer, getByteLength, getByteOffset, isArg, useLittleEndianMethods inherited from class org.htmlunit.corejs.javascript.IdScriptableObject
activatePrototypeMap, addIdFunctionProperty, defaultGet, defaultHas, defaultPut, defineOwnProperty, delete, ensureType, exportAsJSClass, findInstanceIdInfo, getAttributes, getAttributes, getOwnPropertyDescriptor, has, hasPrototypeMap, initPrototypeConstructor, initPrototypeMethod, initPrototypeMethod, initPrototypeMethod, initPrototypeValue, initPrototypeValue, instanceIdInfo, put, setAttributes, setInstanceIdAttributes, setInstanceIdValueMethods inherited from class org.htmlunit.corejs.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getObjectPrototype, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototypeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
CLASS_NAME
- See Also:
-
BYTES_PER_ELEMENT
private static final int BYTES_PER_ELEMENT- See Also:
-
-
Constructor Details
-
NativeUint32Array
public NativeUint32Array() -
NativeUint32Array
-
NativeUint32Array
public NativeUint32Array(int len)
-
-
Method Details
-
getClassName
Description copied from class:ScriptableObjectReturn the name of the class.This is typically the same name as the constructor. Classes extending ScriptableObject must implement this abstract method.
- Specified by:
getClassNamein interfaceScriptable- Specified by:
getClassNamein classScriptableObject
-
init
-
construct
- Specified by:
constructin classNativeTypedArrayView<Long>
-
getBytesPerElement
public int getBytesPerElement()Description copied from class:NativeTypedArrayViewReturn the number of bytes represented by each element in the array. This can be useful when wishing to manipulate the byte array directly from Java.- Specified by:
getBytesPerElementin classNativeTypedArrayView<Long>
-
realThis
- Specified by:
realThisin classNativeTypedArrayView<Long>
-
js_get
- Specified by:
js_getin classNativeTypedArrayView<Long>
-
js_set
- Specified by:
js_setin classNativeTypedArrayView<Long>
-
get
-
set
-