GetValueAt (Obj.sc)

GetValueAt(buffer offset)

Retrieves a value at a specified offset in a buffer. This might be used for retrieving the a point in a buffer containing a sequence of points, for instance.

Parameters:
  • buffer (heapPtr) – A block of memory containing 16-bit values.
  • offset (number) – An index into that buffer.
Returns:

The item at an offset in a buffer.