summaryrefslogtreecommitdiff
path: root/examples/scala-js/library/src/main/scala/scala/scalajs/js/typedarray/Int32Array.scala
blob: 37208e9b92b05317d76361cb228afe615f565592 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package scala.scalajs.js.typedarray

import scala.scalajs.js

class Int32Array private extends TypedArray[Int, Int32Array] {

  /** Constructs a Int32Array with the given length. Initialized to all 0 */
  def this(length: Int) = this()

  /** Creates a new Int32Array with the same elements than the given TypedArray
   *
   *  The elements are converted before being stored in the new Int8Array.
   */
  def this(typedArray: TypedArray[_, _]) = this()

  /** Creates a new Int32Array with the elements in the given array */
  def this(array: js.Array[_]) = this()

  /** Creates a Int32Array view on the given ArrayBuffer */
  def this(buffer: ArrayBuffer, byteOffset: Int = 0, length: Int = ???) = this()

}

object Int32Array extends TypedArrayStatic