Module Js_typed_array.Int8Array

type elt = int
type 'a typed_array = 'a Js_typed_array2.Int8Array.typed_array
type t = elt typed_array
val unsafe_get : t -> int -> elt
val unsafe_set : t -> int -> elt -> unit
val buffer : t -> array_buffer
val byteLength : t -> int
val byteOffset : t -> int
val setArray : elt array -> t -> unit
val setArrayOffset : elt array -> int -> t -> unit
val length : t -> int
val copyWithin : to_:int -> t -> t
val copyWithinFrom : to_:int -> from:int -> t -> t
val copyWithinFromRange : to_:int -> start:int -> end_:int -> t -> t
val fillInPlace : elt -> t -> t
val fillFromInPlace : elt -> from:int -> t -> t
val fillRangeInPlace : elt -> start:int -> end_:int -> t -> t
val reverseInPlace : t -> t
val sortInPlace : t -> t
val sortInPlaceWith : (elt -> elt -> int) Js.Fn.arity2 -> t -> t
val includes : elt -> t -> bool
val indexOf : elt -> t -> int
val indexOfFrom : elt -> from:int -> t -> int
val join : t -> string
val joinWith : string -> t -> string
val lastIndexOf : elt -> t -> int
val lastIndexOfFrom : elt -> from:int -> t -> int
val slice : start:int -> end_:int -> t -> t

start is inclusive, end_ exclusive

val copy : t -> t
val sliceFrom : int -> t -> t
val subarray : start:int -> end_:int -> t -> t

start is inclusive, end_ exclusive

val subarrayFrom : int -> t -> t
val toString : t -> string
val toLocaleString : t -> string
val every : (elt -> bool) Js.Fn.arity1 -> t -> bool
val everyi : (elt -> int -> bool) Js.Fn.arity2 -> t -> bool
val filter : (elt -> bool) Js.Fn.arity1 -> t -> t
val filteri : (elt -> int -> bool) Js.Fn.arity2 -> t -> t
val find : (elt -> bool) Js.Fn.arity1 -> t -> elt Js.undefined
val findi : (elt -> int -> bool) Js.Fn.arity2 -> t -> elt Js.undefined
val findIndex : (elt -> bool) Js.Fn.arity1 -> t -> int
val findIndexi : (elt -> int -> bool) Js.Fn.arity2 -> t -> int
val forEach : (elt -> unit) Js.Fn.arity1 -> t -> unit
val forEachi : (elt -> int -> unit) Js.Fn.arity2 -> t -> unit
val map : (elt -> 'b) Js.Fn.arity1 -> t -> 'b typed_array
val mapi : (elt -> int -> 'b) Js.Fn.arity2 -> t -> 'b typed_array
val reduce : ('b -> elt -> 'b) Js.Fn.arity2 -> 'b -> t -> 'b
val reducei : ('b -> elt -> int -> 'b) Js.Fn.arity3 -> 'b -> t -> 'b
val reduceRight : ('b -> elt -> 'b) Js.Fn.arity2 -> 'b -> t -> 'b
val reduceRighti : ('b -> elt -> int -> 'b) Js.Fn.arity3 -> 'b -> t -> 'b
val some : (elt -> bool) Js.Fn.arity1 -> t -> bool
val somei : (elt -> int -> bool) Js.Fn.arity2 -> t -> bool
val _BYTES_PER_ELEMENT : int
val make : elt array -> t
val fromBuffer : array_buffer -> t

can throw

val fromBufferOffset : array_buffer -> int -> t
  • raises Js.Exn.Error

    raise Js exception

  • parameter offset

    is in bytes

val fromBufferRange : array_buffer -> offset:int -> length:int -> t
  • raises Js.Exn.Error

    raises Js exception

  • parameter offset

    is in bytes, length in elements

val fromLength : int -> t
val from : elt array_like -> t