Class TypedArray.TypedIntArray

Direct Known Subclasses:
TypedArray.AbstractUint32Array, TypedArray.AbstractUint8ClampedArray, TypedArray.DirectInt16Array, TypedArray.DirectInt32Array, TypedArray.DirectInt8Array, TypedArray.DirectUint16Array, TypedArray.DirectUint8Array, TypedArray.Int16Array, TypedArray.Int32Array, TypedArray.Int8Array, TypedArray.InteropInt32Array, TypedArray.InteropOneByteIntArray, TypedArray.InteropTwoByteIntArray, TypedArray.Uint16Array, TypedArray.Uint8Array
Enclosing class:
TypedArray

public abstract static class TypedArray.TypedIntArray extends TypedArray
  • Constructor Details

    • TypedIntArray

      protected TypedIntArray(TypedArrayFactory factory, boolean offset, boolean fixedLength, byte bufferType)
  • Method Details

    • getElement

      public Object getElement(JSDynamicObject object, long index)
      Specified by:
      getElement in class ScriptArray
    • getElementInBounds

      public Object getElementInBounds(JSDynamicObject object, long index)
      Specified by:
      getElementInBounds in class ScriptArray
    • setElementImpl

      public TypedArray.TypedIntArray setElementImpl(JSDynamicObject object, long index, Object value, boolean strict)
      Specified by:
      setElementImpl in class ScriptArray
    • getInt

      public final int getInt(JSDynamicObject object, int index, com.oracle.truffle.api.interop.InteropLibrary interop)
    • setInt

      public final void setInt(JSDynamicObject object, int index, int value, com.oracle.truffle.api.interop.InteropLibrary interop)
    • getIntImpl

      public abstract int getIntImpl(JSArrayBufferObject buffer, int offset, int index, com.oracle.truffle.api.interop.InteropLibrary interop)
    • setIntImpl

      public abstract void setIntImpl(JSArrayBufferObject buffer, int offset, int index, int value, com.oracle.truffle.api.interop.InteropLibrary interop)
    • getBufferElement

      public Object getBufferElement(JSArrayBufferObject buffer, int index, boolean littleEndian, com.oracle.truffle.api.interop.InteropLibrary interop)
      Specified by:
      getBufferElement in class TypedArray
    • getBufferElementIntImpl

      public abstract int getBufferElementIntImpl(JSArrayBufferObject buffer, int index, boolean littleEndian, com.oracle.truffle.api.interop.InteropLibrary interop)
    • setBufferElement

      public void setBufferElement(JSArrayBufferObject buffer, int index, boolean littleEndian, Object value, com.oracle.truffle.api.interop.InteropLibrary interop)
      Specified by:
      setBufferElement in class TypedArray
    • setBufferElementIntImpl

      public abstract void setBufferElementIntImpl(JSArrayBufferObject buffer, int index, boolean littleEndian, int value, com.oracle.truffle.api.interop.InteropLibrary interop)
    • compareExchangeInt

      public int compareExchangeInt(JSTypedArrayObject typedArray, int index, int expectedValue, int newValue)