API / Js / TypedArray-2_arrayBuffer

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

(These docs cover all versions between v3 to v8 and are equivalent to the old BuckleScript docs before the rebrand)

TypedArray2.ArrayBuffer

Provide bindings to JS typed array ArrayBuffer.

t

RE
type t = Js_typed_array2.array_buffer;

make

RE
let make: int => t;

Takes length. initializes elements to 0.

byteLength

RE
let byteLength: t => int;

slice

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

sliceFrom

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