Class NativeUint8Array
java.lang.Object
org.mozilla.javascript.ScriptableObject
org.mozilla.javascript.typedarrays.NativeArrayBufferView
org.mozilla.javascript.typedarrays.NativeTypedArrayView<Integer>
org.mozilla.javascript.typedarrays.NativeUint8Array
- All Implemented Interfaces:
Serializable
,Iterable<Integer>
,Collection<Integer>
,List<Integer>
,RandomAccess
,SequencedCollection<Integer>
,ConstProperties
,DebuggableObject
,ExternalArrayData
,Scriptable
,SymbolScriptable
An array view that stores 8-bit quantities and implements the JavaScript "Uint8Array" interface.
It also implements List<Integer> for direct manipulation in Java.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mozilla.javascript.typedarrays.NativeTypedArrayView
NativeTypedArrayView.RealThis, NativeTypedArrayView.TypedArrayConstructable
Nested classes/interfaces inherited from class org.mozilla.javascript.ScriptableObject
ScriptableObject.KeyComparator
-
Field Summary
Fields inherited from class org.mozilla.javascript.typedarrays.NativeTypedArrayView
length
Fields inherited from class org.mozilla.javascript.typedarrays.NativeArrayBufferView
arrayBuffer, byteLength, offset
Fields inherited from class org.mozilla.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
Fields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND
-
Constructor Summary
ConstructorDescriptionNativeUint8Array
(int len) NativeUint8Array
(NativeArrayBuffer ab, int off, int len) -
Method Summary
Methods inherited from class org.mozilla.javascript.typedarrays.NativeTypedArrayView
add, add, addAll, addAll, checkIndex, clear, contains, containsAll, delete, delete, equals, get, get, getArrayElement, getArrayLength, getIds, has, has, hashCode, indexOf, isEmpty, iterator, js_constructor, lastIndexOf, listIterator, listIterator, put, put, remove, remove, removeAll, retainAll, setArrayElement, size, subList, toArray, toArray
Methods inherited from class org.mozilla.javascript.typedarrays.NativeArrayBufferView
get, getBuffer, getByteLength, getByteOffset, isArg, useLittleEndian
Methods inherited from class org.mozilla.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Constructor Details
-
NativeUint8Array
public NativeUint8Array() -
NativeUint8Array
-
NativeUint8Array
public NativeUint8Array(int len)
-
-
Method Details
-
getClassName
Description copied from class:ScriptableObject
Return the name of the class.This is typically the same name as the constructor. Classes extending ScriptableObject must implement this abstract method.
- Specified by:
getClassName
in interfaceScriptable
- Specified by:
getClassName
in classScriptableObject
-
init
-
getBytesPerElement
public int getBytesPerElement()Description copied from class:NativeTypedArrayView
Return 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:
getBytesPerElement
in classNativeTypedArrayView<Integer>
-
js_get
- Specified by:
js_get
in classNativeTypedArrayView<Integer>
-
js_set
- Specified by:
js_set
in classNativeTypedArrayView<Integer>
-
get
-
set
-