API / Js / TypedArray_arrayBuffer

TypedArray.ArrayBuffer

Provide bindings to JS typed array ArrayBuffer.

t

RES
type t = Js_typed_array.array_buffer

make

RES
let make: int => t

Takes length. initializes elements to 0.

byteLength

RES
let byteLength: t => int

slice

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

sliceFrom

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