Uint8Array
elt
RESCRIPT
type elt = int
typed_array
RESCRIPT
type typed_array<
'a,
> = Js_typed_array2.Uint8Array.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
length
RESCRIPT
let length: t => int
copyWithinFromRange
RESCRIPT
let copyWithinFromRange: (~to_: int, ~start: int, ~end_: int) => t
slice
RESCRIPT
let slice: (~start: int, ~end_: int) => t
subarray
RESCRIPT
let subarray: (~start: int, ~end_: int) => t
_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