API / Js / TypedArray-2_dataView

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.DataView

Provide bindings to JS typed array DataView.

t

type t;

make

let make: Js_typed_array2.array_buffer => t;

fromBuffer

let fromBuffer: Js_typed_array2.array_buffer => t;

fromBufferOffset

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

fromBufferRange

let fromBufferRange: (Js_typed_array2.array_buffer, ~offset: int, ~length: int) => t;

buffer

let buffer: t => Js_typed_array2.array_buffer;

byteLength

let byteLength: t => int;

byteOffset

let byteOffset: t => int;

getInt8

let getInt8: (t, int) => int;

getUint8

let getUint8: (t, int) => int;

getInt16

let getInt16: (t, int) => int;

getInt16LittleEndian

let getInt16LittleEndian: (t, int) => int;

getUint16

let getUint16: (t, int) => int;

getUint16LittleEndian

let getUint16LittleEndian: (t, int) => int;

getInt32

let getInt32: (t, int) => int;

getInt32LittleEndian

let getInt32LittleEndian: (t, int) => int;

getUint32

let getUint32: (t, int) => int;

getUint32LittleEndian

let getUint32LittleEndian: (t, int) => int;

getFloat32

let getFloat32: (t, int) => float;

getFloat32LittleEndian

let getFloat32LittleEndian: (t, int) => float;

getFloat64

let getFloat64: (t, int) => float;

getFloat64LittleEndian

let getFloat64LittleEndian: (t, int) => float;

setInt8

let setInt8: (t, int, int) => unit;

setUint8

let setUint8: (t, int, int) => unit;

setInt16

let setInt16: (t, int, int) => unit;

setInt16LittleEndian

let setInt16LittleEndian: (t, int, int) => unit;

setUint16

let setUint16: (t, int, int) => unit;

setUint16LittleEndian

let setUint16LittleEndian: (t, int, int) => unit;

setInt32

let setInt32: (t, int, int) => unit;

setInt32LittleEndian

let setInt32LittleEndian: (t, int, int) => unit;

setUint32

let setUint32: (t, int, int) => unit;

setUint32LittleEndian

let setUint32LittleEndian: (t, int, int) => unit;

setFloat32

let setFloat32: (t, int, float) => unit;

setFloat32LittleEndian

let setFloat32LittleEndian: (t, int, float) => unit;

setFloat64

let setFloat64: (t, int, float) => unit;

setFloat64LittleEndian

let setFloat64LittleEndian: (t, int, float) => unit;