Packages

trait Uint8Array extends Object with StObject with NumberDictionary[Double]

A typed array of 8-bit unsigned 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()
Linear Supertypes
NumberDictionary[Double], StObject, Object, Any, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Uint8Array
  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): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): 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: ArrayBuffer

    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() @HotSpotIntrinsicCandidate()
  10. def copyWithin(target: Double, start: Double, end: Double): Uint8Array.this.type
  11. def copyWithin(target: Double, start: Double): Uint8Array.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): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def every(predicate: Function3[Double, Double, Uint8Array.this.type, Any], thisArg: Any): Boolean
  16. def every(predicate: Function3[Double, Double, Uint8Array.this.type, Any]): 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): Uint8Array.this.type
  18. def fill(value: Double, start: Double, end: Double): Uint8Array.this.type
  19. def fill(value: Double, start: Double): Uint8Array.this.type
  20. def fill(value: Double): Uint8Array.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, Uint8Array.this.type, Any], thisArg: Any): scala.scalajs.js.typedarray.Uint8Array
  22. def filter(predicate: Function3[Double, Double, Uint8Array.this.type, Any]): scala.scalajs.js.typedarray.Uint8Array

    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, Uint8Array.this.type, Boolean], thisArg: Any): UndefOr[Double]
  24. def find(predicate: Function3[Double, Double, Uint8Array.this.type, 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, Uint8Array.this.type, Boolean], thisArg: Any): Double
  26. def findIndex(predicate: Function3[Double, Double, Uint8Array.this.type, 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, Uint8Array.this.type, Unit], thisArg: Any): Unit
  28. def forEach(callbackfn: Function3[Double, Double, Uint8Array.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() @HotSpotIntrinsicCandidate()
  30. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  31. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  32. def indexOf(searchElement: Double, fromIndex: Double): Double
  33. 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.

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

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

  39. def keys(): IterableIterator[Double]

    Returns an list of keys in the array

  40. def lastIndexOf(searchElement: Double, fromIndex: Double): Double
  41. 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.

  42. val length: Double

    The length of the array.

  43. def map(callbackfn: Function3[Double, Double, Uint8Array.this.type, Double], thisArg: Any): scala.scalajs.js.typedarray.Uint8Array
  44. def map(callbackfn: Function3[Double, Double, Uint8Array.this.type, Double]): scala.scalajs.js.typedarray.Uint8Array

    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.

  45. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  46. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  47. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  48. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  49. def reduce[U](callbackfn: Function4[U, Double, Double, Uint8Array.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.

  50. def reduce(callbackfn: Function4[Double, Double, Double, Uint8Array.this.type, Double], initialValue: Double): Double
  51. def reduce(callbackfn: Function4[Double, Double, Double, Uint8Array.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.

  52. def reduceRight[U](callbackfn: Function4[U, Double, Double, Uint8Array.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.

  53. def reduceRight(callbackfn: Function4[Double, Double, Double, Uint8Array.this.type, Double], initialValue: Double): Double
  54. def reduceRight(callbackfn: Function4[Double, Double, Double, Uint8Array.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.

  55. def reverse(): scala.scalajs.js.typedarray.Uint8Array

    Reverses the elements in an Array.

  56. def set(array: ArrayLike[Double], offset: Double): Unit
  57. 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.

  58. def slice(start: Unit, end: Double): scala.scalajs.js.typedarray.Uint8Array
  59. def slice(start: Double, end: Double): scala.scalajs.js.typedarray.Uint8Array
  60. def slice(start: Double): scala.scalajs.js.typedarray.Uint8Array
  61. def slice(): scala.scalajs.js.typedarray.Uint8Array

    Returns a section of an array.

  62. def some(predicate: Function3[Double, Double, Uint8Array.this.type, Any], thisArg: Any): Boolean
  63. def some(predicate: Function3[Double, Double, Uint8Array.this.type, Any]): 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.

  64. def sort(compareFn: Function2[Double, Double, Double]): Uint8Array.this.type
  65. def sort(): Uint8Array.this.type

    Sorts an array.

  66. def subarray(begin: Unit, end: Double): scala.scalajs.js.typedarray.Uint8Array
  67. def subarray(begin: Double, end: Double): scala.scalajs.js.typedarray.Uint8Array
  68. def subarray(begin: Double): scala.scalajs.js.typedarray.Uint8Array
  69. def subarray(): scala.scalajs.js.typedarray.Uint8Array

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

  70. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  71. def toLocaleString(): String
    Definition Classes
    Object
  72. def toString(): String
    Definition Classes
    AnyRef → Any
  73. val toStringTag: stdStrings.Uint8Array
    Annotations
    @JSName(js.Symbol.toStringTag)
  74. def valueOf(): Any
    Definition Classes
    Object
  75. def values(): IterableIterator[Double]

    Returns an list of values in the array

  76. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  77. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  78. 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 Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped