API / Js / TypedArray-2_arrayBuffer

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