WordAt (System.sc)

WordAt(buffer offset)

Retrieves a 16-bit value (word) 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.

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

The item at an offset in a buffer.