API / Js / Typedarray2 / 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: (t, ~start: int, ~end_: int) => array_buffer

sliceFrom

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