Docs
Language Manual
  • Introduction
  • Cheatsheet
JavaScript
  • BuckleScript
  • ReasonReact
  • GenType
API
Overview
JavaScript
  • Belt Stdlib
  • Js Module
PlaygroundBlogCommunity
  • Playground
  • Blog
  • Community
  • Twitter
  • Discord
  • Github
Js Module
latest
TypedArray2.ArrayBuffer
  • t
  • make
  • byteLength
  • slice
  • sliceFrom
Overview
  • Introduction
API
  • Array2
  • Array
  • Console
  • Date
  • Dict
  • Exn
  • Float
  • Global
  • Int
  • Json
  • List
  • Math
  • NullUndefined
  • Null
  • Nullable
  • Obj
  • Option
  • Promise
  • Re
  • Result
  • String2
  • String
  • TypedArrayArrayBuffer
  • TypedArrayDataView
  • TypedArrayFloat32Array
  • TypedArrayFloat64Array
  • TypedArrayInt8Array
  • TypedArrayInt16Array
  • TypedArrayInt32Array
  • TypedArrayTypeS
  • TypedArrayUint8Array
  • TypedArrayUint8ClampedArray
  • TypedArrayUint16Array
  • TypedArrayUint32Array
  • TypedArray2ArrayBuffer
  • TypedArray2DataView
  • TypedArray2Float32Array
  • TypedArray2Float64Array
  • TypedArray2Int8Array
  • TypedArray2Int16Array
  • TypedArray2Int32Array
  • TypedArray2Uint8Array
  • TypedArray2Uint8ClampedArray
  • TypedArray2Uint16Array
  • TypedArray2Uint32Array
  • TypedArray2
  • TypedArray
  • Types
  • Undefined
  • Vector
API / JavaScript / Js / TypedArray-2_arrayBuffer

TypedArray2.ArrayBuffer

Provide bindings to JS typed array ArrayBuffer.

type t = Js_typed_array2.array_buffer;
let make: int => t;

Takes length. initializes elements to 0.

let byteLength: t => int;
let slice: (t, ~start: int, ~end_: int) => Js_typed_array2.array_buffer;
let sliceFrom: (t, int) => Js_typed_array2.array_buffer;