Package

scala.scalajs.js

typedarray

Permalink

package typedarray

ECMAScript 6 The typdearray package provides facade types for JavaScript ArrayBuffer, TypeArrays and DataView. Further, it provides conversions between primitive Scala arrays and TypedArrays

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. typedarray
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit final class AB2TA extends AnyVal

    Permalink

    ECMAScript 6 Adds toTypedArray conversion to an Array[Byte]

    ECMAScript 6 Adds toTypedArray conversion to an Array[Byte]

  2. implicit final class AC2TA extends AnyVal

    Permalink

    ECMAScript 6 Adds toTypedArray conversion to an Array[Char]

    ECMAScript 6 Adds toTypedArray conversion to an Array[Char]

  3. implicit final class AD2TA extends AnyVal

    Permalink

    ECMAScript 6 Adds toTypedArray conversion to an Array[Double]

    ECMAScript 6 Adds toTypedArray conversion to an Array[Double]

  4. implicit final class AF2TA extends AnyVal

    Permalink

    ECMAScript 6 Adds toTypedArray conversion to an Array[Float]

    ECMAScript 6 Adds toTypedArray conversion to an Array[Float]

  5. implicit final class AI2TA extends AnyVal

    Permalink

    ECMAScript 6 Adds toTypedArray conversion to an Array[Int]

    ECMAScript 6 Adds toTypedArray conversion to an Array[Int]

  6. implicit final class AS2TA extends AnyVal

    Permalink

    ECMAScript 6 Adds toTypedArray conversion to an Array[Short]

    ECMAScript 6 Adds toTypedArray conversion to an Array[Short]

  7. class ArrayBuffer extends Object

    Permalink

    ECMAScript 6 An ArrayBuffer is a block of contiguous, non-resizable memory.

    ECMAScript 6 An ArrayBuffer is a block of contiguous, non-resizable memory.

    Annotations
    @RawJSType() @native() @JSGlobal()
  8. class ArrayBufferInputStream extends InputStream

    Permalink

    ECMAScript 6 A java.io.InputStream wrapping a JavaScript ArrayBuffer

    ECMAScript 6 A java.io.InputStream wrapping a JavaScript ArrayBuffer

    This class is extremely similar to a ByteArrayInputStream, but uses ArrayBuffers as the underlying representation. Stream implementations may special case on this stream for better performance and access the underlying buffer directly. (They still need to make sure the internal pointers are properly aligned though).

    This stream has several public members (n.b. buffer, offset, length and pos) in order to allow JavaScript aware applications to special case on this kind of stream and access the underlying ArrayBuffer directly for efficiency. In this case it is the client's responsibility to synchronize pos, as if the stream were read normally (if the context in which it is used requires this).

  9. trait ArrayBufferView extends Object

    Permalink

    ECMAScript 6 An ArrayBufferView allows accessing the data of an ArrayBuffer

    ECMAScript 6 An ArrayBufferView allows accessing the data of an ArrayBuffer

    Annotations
    @RawJSType() @native()
  10. class DataView extends Object with ArrayBufferView

    Permalink

    ECMAScript 6 A DataView allows for extraction of particular data types at specific offsets.

    ECMAScript 6 A DataView allows for extraction of particular data types at specific offsets.

    Annotations
    @RawJSType() @native() @JSGlobal()
  11. class Float32Array extends Object with TypedArray[Float, Float32Array]

    Permalink

    ECMAScript 6 A TypedArray of single precision floats

    ECMAScript 6 A TypedArray of single precision floats

    Annotations
    @RawJSType() @native() @JSGlobal()
  12. class Float64Array extends Object with TypedArray[Double, Float64Array]

    Permalink

    ECMAScript 6 A TypedArray of double precision floats

    ECMAScript 6 A TypedArray of double precision floats

    Annotations
    @RawJSType() @native() @JSGlobal()
  13. class Int16Array extends Object with TypedArray[Short, Int16Array]

    Permalink

    ECMAScript 6 A TypedArray of signed 16-bit integers

    ECMAScript 6 A TypedArray of signed 16-bit integers

    Annotations
    @RawJSType() @native() @JSGlobal()
  14. class Int32Array extends Object with TypedArray[Int, Int32Array]

    Permalink

    ECMAScript 6 A TypedArray of signed 32-bit integers

    ECMAScript 6 A TypedArray of signed 32-bit integers

    Annotations
    @RawJSType() @native() @JSGlobal()
  15. class Int8Array extends Object with TypedArray[Byte, Int8Array]

    Permalink

    ECMAScript 6 A TypedArray of signed 8-bit integers

    ECMAScript 6 A TypedArray of signed 8-bit integers

    Annotations
    @RawJSType() @native() @JSGlobal()
  16. implicit final class TA2AB extends AnyVal

    Permalink

    ECMAScript 6 Adds toArray conversion to a Int8Array

    ECMAScript 6 Adds toArray conversion to a Int8Array

  17. implicit final class TA2AC extends AnyVal

    Permalink

    ECMAScript 6 Adds toArray conversion to a Uint16Array

    ECMAScript 6 Adds toArray conversion to a Uint16Array

  18. implicit final class TA2AD extends AnyVal

    Permalink

    ECMAScript 6 Adds toArray conversion to a Float64Array

    ECMAScript 6 Adds toArray conversion to a Float64Array

  19. implicit final class TA2AF extends AnyVal

    Permalink

    ECMAScript 6 Adds toArray conversion to a Float32Array

    ECMAScript 6 Adds toArray conversion to a Float32Array

  20. implicit final class TA2AI extends AnyVal

    Permalink

    ECMAScript 6 Adds toArray conversion to a Int32Array

    ECMAScript 6 Adds toArray conversion to a Int32Array

  21. implicit final class TA2AS extends AnyVal

    Permalink

    ECMAScript 6 Adds toArray conversion to a Int16Array

    ECMAScript 6 Adds toArray conversion to a Int16Array

  22. trait TypedArray[T, Repr] extends Object with ArrayBufferView with Iterable[T]

    Permalink

    ECMAScript 6 A TypedArray allows to view an ArrayBuffer as an array of values of a particular numeric type.

    ECMAScript 6 A TypedArray allows to view an ArrayBuffer as an array of values of a particular numeric type.

    Annotations
    @RawJSType() @native()
  23. final class TypedArrayBufferOps[TypedArrayType <: TypedArray[_, TypedArrayType]] extends AnyVal

    Permalink

    Additional operations on a Buffer with interoperability with JavaScript Typed Arrays.

    Additional operations on a Buffer with interoperability with JavaScript Typed Arrays.

    All Scala.js implementations of Buffer also implement this interface for some TypedArrayType, which depends on the type of elements in the buffer.

  24. trait TypedArrayStatic extends Object

    Permalink

    ECMAScript 6 Static information that exists for any concrete TypedArray

    ECMAScript 6 Static information that exists for any concrete TypedArray

    Annotations
    @RawJSType() @native()
  25. class Uint16Array extends Object with TypedArray[Int, Uint16Array]

    Permalink

    ECMAScript 6 A TypedArray of unsigned 16-bit integers

    ECMAScript 6 A TypedArray of unsigned 16-bit integers

    Annotations
    @RawJSType() @native() @JSGlobal()
  26. class Uint32Array extends Object with TypedArray[Double, Uint32Array]

    Permalink

    ECMAScript 6 A TypedArray of unsigned 32-bit integers

    ECMAScript 6 A TypedArray of unsigned 32-bit integers

    Annotations
    @RawJSType() @native() @JSGlobal()
  27. class Uint8Array extends Object with TypedArray[Short, Uint8Array]

    Permalink

    ECMAScript 6 A TypedArray of unsigned 8-bit integers

    ECMAScript 6 A TypedArray of unsigned 8-bit integers

    Annotations
    @RawJSType() @native() @JSGlobal()
  28. class Uint8ClampedArray extends Object with TypedArray[Int, Uint8ClampedArray]

    Permalink

    ECMAScript 6 A TypedArray of unsigned 8-bit integers whose values are clamped to their max/min rather than wrapped around if they overflow.

    ECMAScript 6 A TypedArray of unsigned 8-bit integers whose values are clamped to their max/min rather than wrapped around if they overflow.

    Annotations
    @RawJSType() @native() @JSGlobal()

Value Members

  1. object DataViewExt

    Permalink

    Extensions for DataView.

  2. object Float32Array extends Object with TypedArrayStatic

    Permalink

    ECMAScript 6 Float32Array companion

    ECMAScript 6 Float32Array companion

    Annotations
    @native() @JSGlobal()
  3. object Float64Array extends Object with TypedArrayStatic

    Permalink

    ECMAScript 6 Float64Array companion

    ECMAScript 6 Float64Array companion

    Annotations
    @native() @JSGlobal()
  4. object Int16Array extends Object with TypedArrayStatic

    Permalink

    ECMAScript 6 Int16Array companion

    ECMAScript 6 Int16Array companion

    Annotations
    @native() @JSGlobal()
  5. object Int32Array extends Object with TypedArrayStatic

    Permalink

    ECMAScript 6 Int32Array companion

    ECMAScript 6 Int32Array companion

    Annotations
    @native() @JSGlobal()
  6. object Int8Array extends Object with TypedArrayStatic

    Permalink

    ECMAScript 6 Int8Array companion

    ECMAScript 6 Int8Array companion

    Annotations
    @native() @JSGlobal()
  7. object TypedArrayBuffer

    Permalink

    Factory methods to create direct buffers from Typed Arrays.

    Factory methods to create direct buffers from Typed Arrays.

    All buffers created by the methods of this object are direct buffers with the native byte order of the platform.

  8. object TypedArrayBufferOps

    Permalink

    Extensions to Buffers for interoperability with JavaScript Typed Arrays.

  9. object Uint16Array extends Object with TypedArrayStatic

    Permalink

    ECMAScript 6 Uint16Array companion

    ECMAScript 6 Uint16Array companion

    Annotations
    @native() @JSGlobal()
  10. object Uint32Array extends Object with TypedArrayStatic

    Permalink

    ECMAScript 6 Uint32Array companion

    ECMAScript 6 Uint32Array companion

    Annotations
    @native() @JSGlobal()
  11. object Uint8Array extends Object with TypedArrayStatic

    Permalink

    ECMAScript 6 Uint8Array companion

    ECMAScript 6 Uint8Array companion

    Annotations
    @native() @JSGlobal()
  12. object Uint8ClampedArray extends Object with TypedArrayStatic

    Permalink

    ECMAScript 6 Uint8ClampedArray companion

    ECMAScript 6 Uint8ClampedArray companion

    Annotations
    @native() @JSGlobal()
  13. def byteArray2Int8Array(array: scala.Array[Byte]): Int8Array

    Permalink
  14. def charArray2Uint16Array(array: scala.Array[Char]): Uint16Array

    Permalink
  15. def doubleArray2Float64Array(array: scala.Array[Double]): Float64Array

    Permalink
  16. def float32Array2FloatArray(array: Float32Array): scala.Array[Float]

    Permalink
  17. def float64Array2DoubleArray(array: Float64Array): scala.Array[Double]

    Permalink
  18. def floatArray2Float32Array(array: scala.Array[Float]): Float32Array

    Permalink
  19. def int16Array2ShortArray(array: Int16Array): scala.Array[Short]

    Permalink
  20. def int32Array2IntArray(array: Int32Array): scala.Array[Int]

    Permalink
  21. def int8Array2ByteArray(array: Int8Array): scala.Array[Byte]

    Permalink
  22. def intArray2Int32Array(array: scala.Array[Int]): Int32Array

    Permalink
  23. def shortArray2Int16Array(array: scala.Array[Short]): Int16Array

    Permalink
  24. def uint16Array2CharArray(array: Uint16Array): scala.Array[Char]

    Permalink

Inherited from AnyRef

Inherited from scala.Any

Ungrouped