Module mozjs::typedarray

source ·
Expand description

High-level, safe bindings for JS typed array APIs. Allows creating new typed arrays or wrapping existing JS reflectors, and prevents reinterpreting existing buffers as different types except in well-defined cases.

Macros

Structs

Enums

Traits

  • Trait that specifies how pointers to wrapped objects are stored. It supports two variants, one with bare pointer (to be rooted on stack using CustomAutoRooter) and wrapped in a Box<Heap>, which can be stored in a heap-allocated structure, to be rooted with JSTraceable-implementing tracers (currently implemented in Servo).
  • Internal trait used to associate an element type with an underlying representation and various functions required to manipulate typed arrays of that element type.
  • Internal trait for creating new typed arrays.

Type Aliases