public class JSInt8Array extends JSTypedArray<java.lang.Byte>
JSObject.jsexport, JSObject.Property<T>
JSPropertyAttributeDontDelete, JSPropertyAttributeDontEnum, JSPropertyAttributeNone, JSPropertyAttributeReadOnly
Constructor and Description |
---|
JSInt8Array(org.liquidplayer.javascript.JNIJSObject valueRef,
JSContext ctx)
Treats an existing value as a typed array
|
JSInt8Array(JSArrayBuffer buffer)
Creates a typed array from a JSArrayBuffer
|
JSInt8Array(JSArrayBuffer buffer,
int byteOffset)
Creates a typed array from a JSArrayBuffer
|
JSInt8Array(JSArrayBuffer buffer,
int byteOffset,
int length)
Creates a typed array from a JSArrayBuffer
|
JSInt8Array(JSContext ctx,
int length)
Creates a typed array of length 'length' in JSContext 'context'
|
JSInt8Array(JSContext ctx,
java.lang.Object object)
Creates new typed array as if by TypedArray.from()
|
JSInt8Array(JSTypedArray tarr)
Creates a new JSInt8Array from the contents of another typed array
|
Modifier and Type | Method and Description |
---|---|
JSInt8Array |
subarray(int begin)
JavaScript: TypedArray.prototype.subarray(), see:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray
|
JSInt8Array |
subarray(int begin,
int end)
JavaScript: TypedArray.prototype.subarray(), see:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray
|
JSInt8Array |
subList(int fromIndex,
int toIndex) |
add, buffer, byteLength, byteOffset, from
add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, toArray, toArray, toArray
apply, call, call, newInstance
__nullFunc, deleteProperty, getThis, hasProperty, isConstructor, isFunction, property, property, property, propertyAtIndex, propertyAtIndex, propertyNames, prototype, prototype
getContext, isArray, isBoolean, isDate, isEqual, isFloat32Array, isFloat64Array, isInstanceOfConstructor, isInt16Array, isInt32Array, isInt8Array, isNull, isNumber, isObject, isStrictEqual, isString, isTypedArray, isUint16Array, isUint32Array, isUint8Array, isUint8ClampedArray, isUndefined, toBoolean, toFunction, toJSArray, toJSON, toNumber, toObject, toString, valueHash, valueRef
public JSInt8Array(JSContext ctx, int length)
ctx
- the JSContext in which to create the typed arraylength
- the length of the array in elementspublic JSInt8Array(JSTypedArray tarr)
tarr
- the typed array from which to create the new arraypublic JSInt8Array(JSContext ctx, java.lang.Object object)
ctx
- The context in which to create the typed arrayobject
- The object to create the array frompublic JSInt8Array(JSArrayBuffer buffer, int byteOffset, int length)
buffer
- The JSArrayBuffer to create the typed array frombyteOffset
- The byte offset in the ArrayBuffer to start fromlength
- The number of bytes from 'byteOffset' to include in the arraypublic JSInt8Array(JSArrayBuffer buffer, int byteOffset)
buffer
- The JSArrayBuffer to create the typed array frombyteOffset
- The byte offset in the ArrayBuffer to start frompublic JSInt8Array(JSArrayBuffer buffer)
buffer
- The JSArrayBuffer to create the typed array frompublic JSInt8Array(org.liquidplayer.javascript.JNIJSObject valueRef, JSContext ctx)
valueRef
- the JavaScriptCore value referencectx
- The JSContext of the valuepublic JSInt8Array subarray(int begin, int end)
begin
- the element to begin at (inclusive)end
- the element to end at (exclusive)public JSInt8Array subarray(int begin)
begin
- the element to begin at (inclusive)@NonNull public JSInt8Array subList(int fromIndex, int toIndex)
List.subList(int, int)