Packages

trait Int16Array extends scala.scalajs.js.Object with StObject with NumberDictionary[Double]

A typed array of 16-bit signed integer values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.

Annotations
@JSType() @native()
Source
Int16Array.scala
Linear Supertypes
NumberDictionary[Double], StObject, scala.scalajs.js.Object, Any, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Int16Array
  2. NumberDictionary
  3. StObject
  4. Object
  5. Any
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): scala.Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): scala.Boolean
    Definition Classes
    AnyRef → Any
  4. val BYTES_PER_ELEMENT: Double

    The size in bytes of each element in the array.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val buffer: ArrayBufferLike

    The ArrayBuffer instance referenced by the array.

  7. val byteLength: Double

    The length in bytes of the array.

  8. val byteOffset: Double

    The offset in bytes of the array.

  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  10. def copyWithin(target: Double, start: Double, end: Double): Int16Array.this.type
  11. def copyWithin(target: Double, start: Double): Int16Array.this.type

    Returns the this object after copying a section of the array identified by start and end to the same array starting at position target

    Returns the this object after copying a section of the array identified by start and end to the same array starting at position target

    target

    If target is negative, it is treated as length+target where length is the length of the array.

    start

    If start is negative, it is treated as length+start. If end is negative, it is treated as length+end.

  12. def entries(): IterableIterator[Tuple2[Double, Double]]

    Returns an array of key, value pairs for every entry in the array

  13. final def eq(arg0: AnyRef): scala.Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): scala.Boolean
    Definition Classes
    AnyRef → Any
  15. def every(predicate: Function3[Double, Double, Int16Array.this.type, Any], thisArg: Any): scala.Boolean
  16. def every(predicate: Function3[Double, Double, Int16Array.this.type, Any]): scala.Boolean

    Determines whether all the members of an array satisfy the specified test.

    Determines whether all the members of an array satisfy the specified test.

    predicate

    A function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.

  17. def fill(value: Double, start: Unit, end: Double): Int16Array.this.type
  18. def fill(value: Double, start: Double, end: Double): Int16Array.this.type
  19. def fill(value: Double, start: Double): Int16Array.this.type
  20. def fill(value: Double): Int16Array.this.type

    Returns the this object after filling the section identified by start and end with value

    Returns the this object after filling the section identified by start and end with value

    value

    value to fill array section with

  21. def filter(predicate: Function3[Double, Double, Int16Array.this.type, Any], thisArg: Any): scala.scalajs.js.typedarray.Int16Array
  22. def filter(predicate: Function3[Double, Double, Int16Array.this.type, Any]): scala.scalajs.js.typedarray.Int16Array

    Returns the elements of an array that meet the condition specified in a callback function.

    Returns the elements of an array that meet the condition specified in a callback function.

    predicate

    A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.

  23. def find(predicate: Function3[Double, Double, Int16Array.this.type, scala.Boolean], thisArg: Any): UndefOr[Double]
  24. def find(predicate: Function3[Double, Double, Int16Array.this.type, scala.Boolean]): UndefOr[Double]

    Returns the value of the first element in the array where predicate is true, and undefined otherwise.

    Returns the value of the first element in the array where predicate is true, and undefined otherwise.

    predicate

    find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.

  25. def findIndex(predicate: Function3[Double, Double, Int16Array.this.type, scala.Boolean], thisArg: Any): Double
  26. def findIndex(predicate: Function3[Double, Double, Int16Array.this.type, scala.Boolean]): Double

    Returns the index of the first element in the array where predicate is true, and -1 otherwise.

    Returns the index of the first element in the array where predicate is true, and -1 otherwise.

    predicate

    find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, findIndex immediately returns that element index. Otherwise, findIndex returns -1.

  27. def forEach(callbackfn: Function3[Double, Double, Int16Array.this.type, Unit], thisArg: Any): Unit
  28. def forEach(callbackfn: Function3[Double, Double, Int16Array.this.type, Unit]): Unit

    Performs the specified action for each element in an array.

    Performs the specified action for each element in an array.

    callbackfn

    A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.

  29. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  30. def hasOwnProperty(v: scala.Predef.String): scala.Boolean
    Definition Classes
    Object
  31. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  32. def includes(searchElement: Double, fromIndex: Double): scala.Boolean
  33. def includes(searchElement: Double): scala.Boolean

    Determines whether an array includes a certain element, returning true or false as appropriate.

    Determines whether an array includes a certain element, returning true or false as appropriate.

    searchElement

    The element to search for.

  34. def indexOf(searchElement: Double, fromIndex: Double): Double
  35. def indexOf(searchElement: Double): Double

    Returns the index of the first occurrence of a value in an array.

    Returns the index of the first occurrence of a value in an array.

    searchElement

    The value to locate in the array.

  36. final def isInstanceOf[T0]: scala.Boolean
    Definition Classes
    Any
  37. def isPrototypeOf(v: scala.scalajs.js.Object): scala.Boolean
    Definition Classes
    Object
  38. val iterator: Function0[IterableIterator[Double]]
    Annotations
    @JSName(js.Symbol.iterator)
  39. def join(separator: java.lang.String): java.lang.String
  40. def join(): java.lang.String

    Adds all the elements of an array separated by the specified separator string.

  41. def keys(): IterableIterator[Double]

    Returns an list of keys in the array

  42. def lastIndexOf(searchElement: Double, fromIndex: Double): Double
  43. def lastIndexOf(searchElement: Double): Double

    Returns the index of the last occurrence of a value in an array.

    Returns the index of the last occurrence of a value in an array.

    searchElement

    The value to locate in the array.

  44. val length: Double

    The length of the array.

  45. def map(callbackfn: Function3[Double, Double, Int16Array.this.type, Double], thisArg: Any): scala.scalajs.js.typedarray.Int16Array
  46. def map(callbackfn: Function3[Double, Double, Int16Array.this.type, Double]): scala.scalajs.js.typedarray.Int16Array

    Calls a defined callback function on each element of an array, and returns an array that contains the results.

    Calls a defined callback function on each element of an array, and returns an array that contains the results.

    callbackfn

    A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.

  47. final def ne(arg0: AnyRef): scala.Boolean
    Definition Classes
    AnyRef
  48. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  49. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  50. def propertyIsEnumerable(v: scala.Predef.String): scala.Boolean
    Definition Classes
    Object
  51. def reduce[U](callbackfn: Function4[U, Double, Double, Int16Array.this.type, U], initialValue: U): U

    Calls the specified callback function for all the elements in an array.

    Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

    callbackfn

    A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.

    initialValue

    If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.

  52. def reduce(callbackfn: Function4[Double, Double, Double, Int16Array.this.type, Double], initialValue: Double): Double
  53. def reduce(callbackfn: Function4[Double, Double, Double, Int16Array.this.type, Double]): Double

    Calls the specified callback function for all the elements in an array.

    Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

    callbackfn

    A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.

  54. def reduceRight[U](callbackfn: Function4[U, Double, Double, Int16Array.this.type, U], initialValue: U): U

    Calls the specified callback function for all the elements in an array, in descending order.

    Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

    callbackfn

    A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.

    initialValue

    If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.

  55. def reduceRight(callbackfn: Function4[Double, Double, Double, Int16Array.this.type, Double], initialValue: Double): Double
  56. def reduceRight(callbackfn: Function4[Double, Double, Double, Int16Array.this.type, Double]): Double

    Calls the specified callback function for all the elements in an array, in descending order.

    Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

    callbackfn

    A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.

  57. def reverse(): scala.scalajs.js.typedarray.Int16Array

    Reverses the elements in an Array.

  58. def set(array: ArrayLike[Double], offset: Double): Unit
  59. def set(array: ArrayLike[Double]): Unit

    Sets a value or an array of values.

    Sets a value or an array of values.

    array

    A typed or untyped array of values to set.

  60. def slice(start: Unit, end: Double): scala.scalajs.js.typedarray.Int16Array
  61. def slice(start: Double, end: Double): scala.scalajs.js.typedarray.Int16Array
  62. def slice(start: Double): scala.scalajs.js.typedarray.Int16Array
  63. def slice(): scala.scalajs.js.typedarray.Int16Array

    Returns a section of an array.

  64. def some(predicate: Function3[Double, Double, Int16Array.this.type, Any], thisArg: Any): scala.Boolean
  65. def some(predicate: Function3[Double, Double, Int16Array.this.type, Any]): scala.Boolean

    Determines whether the specified callback function returns true for any element of an array.

    Determines whether the specified callback function returns true for any element of an array.

    predicate

    A function that accepts up to three arguments. The some method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.

  66. def sort(compareFn: Function2[Double, Double, Double]): Int16Array.this.type
  67. def sort(): Int16Array.this.type

    Sorts an array.

  68. def subarray(begin: Unit, end: Double): scala.scalajs.js.typedarray.Int16Array
  69. def subarray(begin: Double, end: Double): scala.scalajs.js.typedarray.Int16Array
  70. def subarray(begin: Double): scala.scalajs.js.typedarray.Int16Array
  71. def subarray(): scala.scalajs.js.typedarray.Int16Array

    Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements at begin, inclusive, up to end, exclusive.

  72. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  73. def toLocaleString(): scala.Predef.String
    Definition Classes
    Object
  74. def toString(): java.lang.String
    Definition Classes
    AnyRef → Any
  75. val toStringTag: stdStrings.Int16Array
    Annotations
    @JSName(js.Symbol.toStringTag)
  76. def valueOf(): Any
    Definition Classes
    Object
  77. def values(): IterableIterator[Double]

    Returns an list of values in the array

  78. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  79. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  80. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from NumberDictionary[Double]

Inherited from StObject

Inherited from scala.scalajs.js.Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped