API / JavaScript / Js / TypedArray_dataView

TypedArray.DataView

Provide bindings to JS typed array DataView.

type t = Js_typed_array2.DataView.t;
let make: Js_typed_array.array_buffer => t;
let fromBuffer: Js_typed_array.array_buffer => t;
let fromBufferOffset: (Js_typed_array.array_buffer, int) => t;
let fromBufferRange: (Js_typed_array.array_buffer, ~offset: int, ~length: int) => t;
let buffer: t => Js_typed_array.array_buffer;
let byteLength: t => int;
let byteOffset: t => int;
let getInt8: (t, int) => int;
let getUint8: (t, int) => int;
let getInt16: (t, int) => int;
let getInt16LittleEndian: (t, int) => int;
let getUint16: (t, int) => int;
let getUint16LittleEndian: (t, int) => int;
let getInt32: (t, int) => int;
let getInt32LittleEndian: (t, int) => int;
let getUint32: (t, int) => int;
let getUint32LittleEndian: (t, int) => int;
let getFloat32: (t, int) => float;
let getFloat32LittleEndian: (t, int) => float;
let getFloat64: (t, int) => float;
let getFloat64LittleEndian: (t, int) => float;
let setInt8: (t, int, int) => unit;
let setUint8: (t, int, int) => unit;
let setInt16: (t, int, int) => unit;
let setInt16LittleEndian: (t, int, int) => unit;
let setUint16: (t, int, int) => unit;
let setUint16LittleEndian: (t, int, int) => unit;
let setInt32: (t, int, int) => unit;
let setInt32LittleEndian: (t, int, int) => unit;
let setUint32: (t, int, int) => unit;
let setUint32LittleEndian: (t, int, int) => unit;
let setFloat32: (t, int, float) => unit;
let setFloat32LittleEndian: (t, int, float) => unit;
let setFloat64: (t, int, float) => unit;
let setFloat64LittleEndian: (t, int, float) => unit;