Class TypedArray.TypedFloatArray
java.lang.Object
com.oracle.truffle.js.runtime.array.ScriptArray
com.oracle.truffle.js.runtime.array.TypedArray
com.oracle.truffle.js.runtime.array.TypedArray.TypedFloatArray
- Direct Known Subclasses:
TypedArray.DirectFloat16Array, TypedArray.DirectFloat32Array, TypedArray.DirectFloat64Array, TypedArray.Float16Array, TypedArray.Float32Array, TypedArray.Float64Array, TypedArray.InteropFloat16Array, TypedArray.InteropFloat32Array, TypedArray.InteropFloat64Array
- Enclosing class:
TypedArray
-
Nested Class Summary
Nested classes/interfaces inherited from class TypedArray
TypedArray.AbstractUint32Array, TypedArray.AbstractUint8ClampedArray, TypedArray.BigInt64Array, TypedArray.BigUint64Array, TypedArray.DirectBigInt64Array, TypedArray.DirectBigUint64Array, TypedArray.DirectFloat16Array, TypedArray.DirectFloat32Array, TypedArray.DirectFloat64Array, TypedArray.DirectInt16Array, TypedArray.DirectInt32Array, TypedArray.DirectInt8Array, TypedArray.DirectUint16Array, TypedArray.DirectUint32Array, TypedArray.DirectUint8Array, TypedArray.DirectUint8ClampedArray, TypedArray.ElementType, TypedArray.Float16Array, TypedArray.Float32Array, TypedArray.Float64Array, TypedArray.Int16Array, TypedArray.Int32Array, TypedArray.Int8Array, TypedArray.InteropBigInt64Array, TypedArray.InteropBigIntArray, TypedArray.InteropBigUint64Array, TypedArray.InteropFloat16Array, TypedArray.InteropFloat32Array, TypedArray.InteropFloat64Array, TypedArray.InteropInt16Array, TypedArray.InteropInt32Array, TypedArray.InteropInt8Array, TypedArray.InteropOneByteIntArray, TypedArray.InteropTwoByteIntArray, TypedArray.InteropUint16Array, TypedArray.InteropUint32Array, TypedArray.InteropUint8Array, TypedArray.InteropUint8ClampedArray, TypedArray.TypedBigIntArray, TypedArray.TypedFloatArray, TypedArray.TypedIntArray, TypedArray.Uint16Array, TypedArray.Uint32Array, TypedArray.Uint8Array, TypedArray.Uint8ClampedArrayNested classes/interfaces inherited from class ScriptArray
ScriptArray.CreateWritableProfileAccess, ScriptArray.DefaultIterator, ScriptArray.SetLengthProfileAccess -
Field Summary
Fields inherited from class TypedArray
BUFFER_TYPE_ARRAY, BUFFER_TYPE_DIRECT, BUFFER_TYPE_INTEROP, BUFFER_TYPE_SHAREDFields inherited from class ScriptArray
EMPTY_OBJECT_ARRAY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTypedFloatArray(TypedArrayFactory factory, boolean offset, boolean fixedLength, byte bufferType) -
Method Summary
Modifier and TypeMethodDescriptionfinal doublegetDouble(JSDynamicObject object, int index, com.oracle.truffle.api.interop.InteropLibrary interop) abstract doublegetDoubleImpl(JSArrayBufferObject buffer, int offset, int index, com.oracle.truffle.api.interop.InteropLibrary interop) final ObjectgetElement(JSDynamicObject object, long index) getElementInBounds(JSDynamicObject object, long index) final voidsetDouble(JSDynamicObject object, int index, double value, com.oracle.truffle.api.interop.InteropLibrary interop) abstract voidsetDoubleImpl(JSArrayBufferObject buffer, int offset, int index, double value, com.oracle.truffle.api.interop.InteropLibrary interop) setElementImpl(JSDynamicObject object, long index, Object value, boolean strict) Methods inherited from class TypedArray
addRangeImpl, bytesPerElement, bytesPerElementShift, deleteElementImpl, factories, factories, firstElementIndex, freeze, getBufferElement, getBufferFromTypedArray, getBufferType, getByteArray, getDirectByteBuffer, getElementType, getFactory, getName, getOffset, hasElement, hasHoles, hasOffset, isDirect, isFrozen, isHolesType, isInterop, isLengthNotWritable, isSealed, lastElementIndex, length, lengthInt, nextElementIndex, preventExtensions, previousElementIndex, removeRangeImpl, seal, setBufferElement, setLengthImpl, setLengthNotWritable, unsupportedBufferAccessMethods inherited from class ScriptArray
addRange, asIterable, canDeleteElement, cast, createConstantArray, createConstantEmptyArray, deleteElement, hasHolesOrUnused, isExtensible, isInBoundsFast, isInstance, makeMultiRangeList, makeRangeList, nextPower, ownPropertyKeys, ownPropertyKeysContiguous, ownPropertyKeysHoles, removeRange, removeRange, setElement, setLength, setLength, shiftRange, shiftRangeImpl, toArray, traceArrayTransition, traceWrite, valueIsByte
-
Constructor Details
-
TypedFloatArray
protected TypedFloatArray(TypedArrayFactory factory, boolean offset, boolean fixedLength, byte bufferType)
-
-
Method Details
-
getElement
- Specified by:
getElementin classScriptArray
-
getElementInBounds
- Specified by:
getElementInBoundsin classScriptArray
-
setElementImpl
public final TypedArray.TypedFloatArray setElementImpl(JSDynamicObject object, long index, Object value, boolean strict) - Specified by:
setElementImplin classScriptArray
-
getDouble
public final double getDouble(JSDynamicObject object, int index, com.oracle.truffle.api.interop.InteropLibrary interop) -
setDouble
public final void setDouble(JSDynamicObject object, int index, double value, com.oracle.truffle.api.interop.InteropLibrary interop) -
getDoubleImpl
public abstract double getDoubleImpl(JSArrayBufferObject buffer, int offset, int index, com.oracle.truffle.api.interop.InteropLibrary interop) -
setDoubleImpl
public abstract void setDoubleImpl(JSArrayBufferObject buffer, int offset, int index, double value, com.oracle.truffle.api.interop.InteropLibrary interop)
-