API / Js / Typed_array / Arraybuffer

ArrayBuffer

The underlying buffer that the typed arrays provide views of

see MDN

t

RESCRIPT
type t = array_buffer

make

RESCRIPT
let make: int => t

takes length. initializes elements to 0

byteLength

RESCRIPT
let byteLength: t => int

slice

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

sliceFrom

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