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()
- Alphabetic
- By Inheritance
- Uint8Array
- NumberDictionary
- StObject
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val BYTES_PER_ELEMENT: Double
The size in bytes of each element in the array.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val buffer: ArrayBuffer
The ArrayBuffer instance referenced by the array.
- val byteLength: Double
The length in bytes of the array.
- val byteOffset: Double
The offset in bytes of the array.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def copyWithin(target: Double, start: Double, end: Double): Uint8Array.this.type
- 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.
- def entries(): IterableIterator[Tuple2[Double, Double]]
Returns an array of key, value pairs for every entry in the array
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def every(predicate: Function3[Double, Double, Uint8Array.this.type, Any], thisArg: Any): Boolean
- 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.
- def fill(value: Double, start: Unit, end: Double): Uint8Array.this.type
- def fill(value: Double, start: Double, end: Double): Uint8Array.this.type
- def fill(value: Double, start: Double): Uint8Array.this.type
- 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
- def filter(predicate: Function3[Double, Double, Uint8Array.this.type, Any], thisArg: Any): scala.scalajs.js.typedarray.Uint8Array
- 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.
- def find(predicate: Function3[Double, Double, Uint8Array.this.type, Boolean], thisArg: Any): UndefOr[Double]
- 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.
- def findIndex(predicate: Function3[Double, Double, Uint8Array.this.type, Boolean], thisArg: Any): Double
- 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.
- def forEach(callbackfn: Function3[Double, Double, Uint8Array.this.type, Unit], thisArg: Any): Unit
- 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.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def indexOf(searchElement: Double, fromIndex: Double): Double
- 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.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- val iterator: Function0[IterableIterator[Double]]
- Annotations
- @JSName(js.Symbol.iterator)
- def join(separator: String): String
- def join(): String
Adds all the elements of an array separated by the specified separator string.
- def keys(): IterableIterator[Double]
Returns an list of keys in the array
- def lastIndexOf(searchElement: Double, fromIndex: Double): Double
- 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.
- val length: Double
The length of the array.
- def map(callbackfn: Function3[Double, Double, Uint8Array.this.type, Double], thisArg: Any): scala.scalajs.js.typedarray.Uint8Array
- 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.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- 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.
- def reduce(callbackfn: Function4[Double, Double, Double, Uint8Array.this.type, Double], initialValue: Double): Double
- 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.
- 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.
- def reduceRight(callbackfn: Function4[Double, Double, Double, Uint8Array.this.type, Double], initialValue: Double): Double
- 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.
- def reverse(): scala.scalajs.js.typedarray.Uint8Array
Reverses the elements in an Array.
- def set(array: ArrayLike[Double], offset: Double): Unit
- 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.
- def slice(start: Unit, end: Double): scala.scalajs.js.typedarray.Uint8Array
- def slice(start: Double, end: Double): scala.scalajs.js.typedarray.Uint8Array
- def slice(start: Double): scala.scalajs.js.typedarray.Uint8Array
- def slice(): scala.scalajs.js.typedarray.Uint8Array
Returns a section of an array.
- def some(predicate: Function3[Double, Double, Uint8Array.this.type, Any], thisArg: Any): Boolean
- 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.
- def sort(compareFn: Function2[Double, Double, Double]): Uint8Array.this.type
- def sort(): Uint8Array.this.type
Sorts an array.
- def subarray(begin: Unit, end: Double): scala.scalajs.js.typedarray.Uint8Array
- def subarray(begin: Double, end: Double): scala.scalajs.js.typedarray.Uint8Array
- def subarray(begin: Double): scala.scalajs.js.typedarray.Uint8Array
- 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.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocaleString(): String
- Definition Classes
- Object
- def toString(): String
- Definition Classes
- AnyRef → Any
- val toStringTag: stdStrings.Uint8Array
- Annotations
- @JSName(js.Symbol.toStringTag)
- def valueOf(): Any
- Definition Classes
- Object
- def values(): IterableIterator[Double]
Returns an list of values in the array
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated