This is the latest docs version
Quick Links
  • -Overview
  • -Language Features
  • -JS Interop
  • -Build System
Documentation
Language Manual
Reference for all language features
ReScript & React
First class bindings for ReactJS
GenType
Seamless TypeScript integration
Reanalyze
Dead Code & Termination analysis
Exploration
Packages
Explore third party libraries and bindings
Syntax Lookup
Discover all syntax constructs
APIPlaygroundBlogCommunity
  • Playground
  • Blog
  • X
  • Bluesky
  • GitHub
  • Forum
Js Module
Overview
Js
submodules
  • Array
  • Array2
  • BigInt
  • Blob
  • Console
  • Date
  • Dict
  • Exn
  • File
  • Float
  • Global
  • Int
  • Json
    • Kind
  • List
  • Map
  • Math
  • Null
  • Null_undefined
  • Nullable
  • Obj
  • Option
  • Promise
  • Promise2
  • Re
  • Result
  • Set
  • String
  • String2
  • TypedArray2
    • DataView
    • Float64Array
    • Float32Array
    • Uint32Array
    • Int32Array
    • Uint16Array
    • Int16Array
    • Uint8ClampedArray
    • Uint8Array
    • Int8Array
    • ArrayBuffer
    Typed_array
    • DataView
      • t
        t
      • v
        make
      • v
        fromBuffer
      • v
        fromBufferOffset
      • v
        fromBufferRange
      • v
        buffer
      • v
        byteLength
      • v
        byteOffset
      • v
        getInt8
      • v
        getUint8
      • v
        getInt16
      • v
        getInt16LittleEndian
      • v
        getUint16
      • v
        getUint16LittleEndian
      • v
        getInt32
      • v
        getInt32LittleEndian
      • v
        getUint32
      • v
        getUint32LittleEndian
      • v
        getFloat32
      • v
        getFloat32LittleEndian
      • v
        getFloat64
      • v
        getFloat64LittleEndian
      • v
        setInt8
      • v
        setUint8
      • v
        setInt16
      • v
        setInt16LittleEndian
      • v
        setUint16
      • v
        setUint16LittleEndian
      • v
        setInt32
      • v
        setInt32LittleEndian
      • v
        setUint32
      • v
        setUint32LittleEndian
      • v
        setFloat32
      • v
        setFloat32LittleEndian
      • v
        setFloat64
      • v
        setFloat64LittleEndian
    • Float64_array
    • Float64Array
    • Float32_array
    • Float32Array
    • Uint32Array
    • Int32_array
    • Int32Array
    • Uint16Array
    • Int16Array
    • Uint8ClampedArray
    • Uint8Array
    • Int8Array
    • S
    • ArrayBuffer
    • Type
  • Types
  • Undefined
  • Vector
  • WeakMap
  • WeakSet
  • API / Js / Typed_array / Dataview

    DataView

    The DataView view provides a low-level interface for reading and writing multiple number types in an ArrayBuffer irrespective of the platform's endianness.

    see MDN

    t

    RESCRIPT
    type t = Js_typed_array2.DataView.t

    make

    RESCRIPT
    let make: array_buffer => t

    fromBuffer

    RESCRIPT
    let fromBuffer: array_buffer => t

    fromBufferOffset

    RESCRIPT
    let fromBufferOffset: (array_buffer, int) => t

    fromBufferRange

    RESCRIPT
    let fromBufferRange: (array_buffer, ~offset: int, ~length: int) => t

    buffer

    RESCRIPT
    let buffer: t => array_buffer

    byteLength

    RESCRIPT
    let byteLength: t => int

    byteOffset

    RESCRIPT
    let byteOffset: t => int

    getInt8

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

    getUint8

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

    getInt16

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

    getInt16LittleEndian

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

    getUint16

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

    getUint16LittleEndian

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

    getInt32

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

    getInt32LittleEndian

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

    getUint32

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

    getUint32LittleEndian

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

    getFloat32

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

    getFloat32LittleEndian

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

    getFloat64

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

    getFloat64LittleEndian

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

    setInt8

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

    setUint8

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

    setInt16

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

    setInt16LittleEndian

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

    setUint16

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

    setUint16LittleEndian

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

    setInt32

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

    setInt32LittleEndian

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

    setUint32

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

    setUint32LittleEndian

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

    setFloat32

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

    setFloat32LittleEndian

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

    setFloat64

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

    setFloat64LittleEndian

    RESCRIPT
    let setFloat64LittleEndian: (t, int, float) => unit
    Types and values
    • t
      t
    • v
      make
    • v
      fromBuffer
    • v
      fromBufferOffset
    • v
      fromBufferRange
    • v
      buffer
    • v
      byteLength
    • v
      byteOffset
    • v
      getInt8
    • v
      getUint8
    • v
      getInt16
    • v
      getInt16LittleEndian
    • v
      getUint16
    • v
      getUint16LittleEndian
    • v
      getInt32
    • v
      getInt32LittleEndian
    • v
      getUint32
    • v
      getUint32LittleEndian
    • v
      getFloat32
    • v
      getFloat32LittleEndian
    • v
      getFloat64
    • v
      getFloat64LittleEndian
    • v
      setInt8
    • v
      setUint8
    • v
      setInt16
    • v
      setInt16LittleEndian
    • v
      setUint16
    • v
      setUint16LittleEndian
    • v
      setInt32
    • v
      setInt32LittleEndian
    • v
      setUint32
    • v
      setUint32LittleEndian
    • v
      setFloat32
    • v
      setFloat32LittleEndian
    • v
      setFloat64
    • v
      setFloat64LittleEndian

    © 2024 The ReScript Project

    Software and assets distribution powered by KeyCDN.

    About
    • Community
    • ReScript Association
    Find us on