Module Js_typed_array2.DataView

module DataView: sig .. end
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 also MDN

  • type t 
    val make : Js_typed_array2.array_buffer -> t
    val fromBuffer : Js_typed_array2.array_buffer -> t
    val fromBufferOffset : Js_typed_array2.array_buffer -> int -> t
    val fromBufferRange : Js_typed_array2.array_buffer ->
    offset:int -> length:int -> t
    val buffer : t -> Js_typed_array2.array_buffer
    val byteLength : t -> int
    val byteOffset : t -> int
    val getInt8 : t -> int -> int
    val getUint8 : t -> int -> int
    val getInt16 : t -> int -> int
    val getInt16LittleEndian : t -> int -> int
    val getUint16 : t -> int -> int
    val getUint16LittleEndian : t -> int -> int
    val getInt32 : t -> int -> int
    val getInt32LittleEndian : t -> int -> int
    val getUint32 : t -> int -> int
    val getUint32LittleEndian : t -> int -> int
    val getFloat32 : t -> int -> float
    val getFloat32LittleEndian : t -> int -> float
    val getFloat64 : t -> int -> float
    val getFloat64LittleEndian : t -> int -> float
    val setInt8 : t -> int -> int -> unit
    val setUint8 : t -> int -> int -> unit
    val setInt16 : t -> int -> int -> unit
    val setInt16LittleEndian : t -> int -> int -> unit
    val setUint16 : t -> int -> int -> unit
    val setUint16LittleEndian : t -> int -> int -> unit
    val setInt32 : t -> int -> int -> unit
    val setInt32LittleEndian : t -> int -> int -> unit
    val setUint32 : t -> int -> int -> unit
    val setUint32LittleEndian : t -> int -> int -> unit
    val setFloat32 : t -> int -> float -> unit
    val setFloat32LittleEndian : t -> int -> float -> unit
    val setFloat64 : t -> int -> float -> unit
    val setFloat64LittleEndian : t -> int -> float -> unit