Join us online - 19th of November
Save your spot
For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Class PosArray

Hierarchy (View Summary)

Index
arrayBuffer: ArrayBuffer
bytesPerElement: number
capacity: number
int16: Int16Array
isTransferred: boolean
length: number
uint8: Uint8Array
  • Resets the length of the array to 0 without de-allocating capacity.

    Returns void

  • Parameters

    • i: number
    • v0: number
    • v1: number

    Returns number

  • Indicate a planned increase in size, so that any necessary allocation may be done once, ahead of time.

    Parameters

    • n: number

      The expected size of the array.

    Returns void

  • Resize the array. If n is greater than the current length then additional elements with undefined values are added. If n is less than the current length then the array will be reduced to the first n elements.

    Parameters

    • n: number

      The new size of the array.

    Returns void

Was this helpful?