Class TypedArrayPrototypeBuiltins.JSArrayBufferViewSetNode

All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode, com.oracle.truffle.api.nodes.NodeInterface, Cloneable
Enclosing class:
TypedArrayPrototypeBuiltins

public abstract static class TypedArrayPrototypeBuiltins.JSArrayBufferViewSetNode extends ArrayBufferPrototypeBuiltins.JSArrayBufferOperation
  • Constructor Details

    • JSArrayBufferViewSetNode

      public JSArrayBufferViewSetNode(JSContext context, JSBuiltin builtin)
  • Method Details

    • set

      protected Object set(JSTypedArrayObject targetObj, Object array, Object offset)
      void set(TypedArray array, optional unsigned long offset). void set(type[] array, optional unsigned long offset). Set multiple values, reading input values from the array. The optional offset value indicates the index in the current array where values are written. If omitted, it is assumed to be 0. If the input array is a TypedArray, the two arrays may use the same underlying ArrayBuffer. In this situation, setting the values takes place as if all the data is first copied into a temporary buffer that does not overlap either of the arrays, and then the data from the temporary buffer is copied into the current array. If the offset plus the length of the given array is out of range for the current TypedArray, an exception is raised.
      Parameters:
      targetObj - destination TypedArray
      array - source object
      offset - destination array offset
      Returns:
      void
    • set

      protected Object set(Object thisObj, Object array, Object offset)
    • toNumber

      protected Object toNumber(Object value)
    • toBigInt

      protected Object toBigInt(Object value)