API / Js / TypedArray-2_arrayBuffer

You are currently looking at the v9.0.0 docs (Reason v3.6 syntax edition). You can find the latest API docs here.

TypedArray2.ArrayBuffer

Provide bindings to JS typed array ArrayBuffer.

t

RES
type t = Js_typed_array2.array_buffer

make

RES
let make: int => t

Takes length. initializes elements to 0.

byteLength

RES
let byteLength: t => int

slice

RES
let slice: (t, ~start: int, ~end_: int) => Js_typed_array2.array_buffer

sliceFrom

RES
let sliceFrom: (t, int) => Js_typed_array2.array_buffer