API / Js / Typedarray2 / Uint32array

Uint32Array

elt

RESCRIPT
type elt = int

typed_array

RESCRIPT
type typed_array<'a>

t

RESCRIPT
type t = typed_array<elt>

unsafe_get

RESCRIPT
let unsafe_get: (t, int) => elt

unsafe_set

RESCRIPT
let unsafe_set: (t, int, elt) => unit

buffer

RESCRIPT
let buffer: t => array_buffer

byteLength

RESCRIPT
let byteLength: t => int

byteOffset

RESCRIPT
let byteOffset: t => int

setArray

RESCRIPT
let setArray: (t, array<elt>) => unit

setArrayOffset

RESCRIPT
let setArrayOffset: (t, array<elt>, int) => unit

length

RESCRIPT
let length: t => int

copyWithin

RESCRIPT
let copyWithin: (t, ~to_: int) => t

copyWithinFrom

RESCRIPT
let copyWithinFrom: (t, ~to_: int, ~from: int) => t

copyWithinFromRange

RESCRIPT
let copyWithinFromRange: (t, ~to_: int, ~start: int, ~end_: int) => t

fillInPlace

RESCRIPT
let fillInPlace: (t, elt) => t

fillFromInPlace

RESCRIPT
let fillFromInPlace: (t, elt, ~from: int) => t

fillRangeInPlace

RESCRIPT
let fillRangeInPlace: (t, elt, ~start: int, ~end_: int) => t

reverseInPlace

RESCRIPT
let reverseInPlace: t => t

sortInPlace

RESCRIPT
let sortInPlace: t => t

sortInPlaceWith

RESCRIPT
let sortInPlaceWith: (t, (elt, elt) => int) => t

includes

RESCRIPT
let includes: (t, elt) => bool

indexOf

RESCRIPT
let indexOf: (t, elt) => int

indexOfFrom

RESCRIPT
let indexOfFrom: (t, elt, ~from: int) => int

join

RESCRIPT
let join: t => string

joinWith

RESCRIPT
let joinWith: (t, string) => string

lastIndexOf

RESCRIPT
let lastIndexOf: (t, elt) => int

lastIndexOfFrom

RESCRIPT
let lastIndexOfFrom: (t, elt, ~from: int) => int

slice

RESCRIPT
let slice: (t, ~start: int, ~end_: int) => t

start is inclusive, end_ exclusive

copy

RESCRIPT
let copy: t => t

sliceFrom

RESCRIPT
let sliceFrom: (t, int) => t

subarray

RESCRIPT
let subarray: (t, ~start: int, ~end_: int) => t

start is inclusive, end_ exclusive

subarrayFrom

RESCRIPT
let subarrayFrom: (t, int) => t

toString

RESCRIPT
let toString: t => string

toLocaleString

RESCRIPT
let toLocaleString: t => string

every

RESCRIPT
let every: (t, elt => bool) => bool

everyi

RESCRIPT
let everyi: (t, (elt, int) => bool) => bool

filter

RESCRIPT
let filter: (t, elt => bool) => t

filteri

RESCRIPT
let filteri: (t, (elt, int) => bool) => t

find

RESCRIPT
let find: (t, elt => bool) => Js.undefined<elt>

findi

RESCRIPT
let findi: (t, (elt, int) => bool) => Js.undefined<elt>

findIndex

RESCRIPT
let findIndex: (t, elt => bool) => int

findIndexi

RESCRIPT
let findIndexi: (t, (elt, int) => bool) => int

forEach

RESCRIPT
let forEach: (t, elt => unit) => unit

forEachi

RESCRIPT
let forEachi: (t, (elt, int) => unit) => unit

map

RESCRIPT
let map: (t, elt => 'b) => typed_array<'b>

mapi

RESCRIPT
let mapi: (t, (elt, int) => 'b) => typed_array<'b>

reduce

RESCRIPT
let reduce: (t, ('b, elt) => 'b, 'b) => 'b

reducei

RESCRIPT
let reducei: (t, ('b, elt, int) => 'b, 'b) => 'b

reduceRight

RESCRIPT
let reduceRight: (t, ('b, elt) => 'b, 'b) => 'b

reduceRighti

RESCRIPT
let reduceRighti: (t, ('b, elt, int) => 'b, 'b) => 'b

some

RESCRIPT
let some: (t, elt => bool) => bool

somei

RESCRIPT
let somei: (t, (elt, int) => bool) => bool

_BYTES_PER_ELEMENT

RESCRIPT
let _BYTES_PER_ELEMENT: int

make

RESCRIPT
let make: array<elt> => t

fromBuffer

RESCRIPT
let fromBuffer: array_buffer => t

can throw

fromBufferOffset

RESCRIPT
let fromBufferOffset: (array_buffer, int) => t

raise Js.Exn.Error raise Js exception

param offset is in bytes

fromBufferRange

RESCRIPT
let fromBufferRange: (array_buffer, ~offset: int, ~length: int) => t

raise Js.Exn.Error raises Js exception

param offset is in bytes, length in elements

fromLength

RESCRIPT
let fromLength: int => t

from

RESCRIPT
let from: array_like<elt> => t