package melange

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

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

type t
val make : array_buffer -> t
val fromBuffer : array_buffer -> t
val fromBufferOffset : array_buffer -> int -> t
val fromBufferRange : array_buffer -> offset:int -> length:int -> t
val buffer : t -> 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
OCaml

Innovation. Community. Security.