Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ITypedArray

PixiJS classes use this type instead of ArrayBuffer and typed arrays to support expressions like geometry.buffers[0].data[0] = position.x.

Gives access to indexing and length field

popelyshev:

If data is actually ArrayBuffer and throws Exception on indexing - its user problem :)

Hierarchy

Indexable

[index: number]: number

Index

Properties

Readonly BYTES_PER_ELEMENT

BYTES_PER_ELEMENT: number

Readonly [toStringTag]

[toStringTag]: string

Readonly byteLength

byteLength: number

Read-only. The length of the ArrayBuffer (in bytes).

Readonly length

length: number

Methods

slice

  • slice(begin: number, end?: number): ArrayBuffer
  • Returns a section of an ArrayBuffer.

    Parameters

    • begin: number
    • Optional end: number

    Returns ArrayBuffer

Generated using TypeDoc