API / Js / TypedArray-2_dataView

You are currently looking at the v6.0 - v8.2 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

RE
type t;

make

RE
let make: Js_typed_array2.array_buffer => t;

fromBuffer

RE
let fromBuffer: Js_typed_array2.array_buffer => t;

fromBufferOffset

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

fromBufferRange

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

buffer

RE
let buffer: t => Js_typed_array2.array_buffer;

byteLength

RE
let byteLength: t => int;

byteOffset

RE
let byteOffset: t => int;

getInt8

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

getUint8

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

getInt16

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

getInt16LittleEndian

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

getUint16

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

getUint16LittleEndian

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

getInt32

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

getInt32LittleEndian

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

getUint32

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

getUint32LittleEndian

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

getFloat32

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

getFloat32LittleEndian

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

getFloat64

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

getFloat64LittleEndian

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

setInt8

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

setUint8

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

setInt16

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

setInt16LittleEndian

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

setUint16

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

setUint16LittleEndian

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

setInt32

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

setInt32LittleEndian

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

setUint32

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

setUint32LittleEndian

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

setFloat32

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

setFloat32LittleEndian

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

setFloat64

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

setFloat64LittleEndian

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