Class TypedArray.TypedIntArray

  • 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)