package lablgl

  1. Overview
  2. Docs
type +'a t
type kind = [
  1. | `bitmap
  2. | `byte
  3. | `double
  4. | `float
  5. | `int
  6. | `long
  7. | `short
  8. | `ubyte
  9. | `uint
  10. | `ulong
  11. | `ushort
]
type fkind = [
  1. | `double
  2. | `float
]
type ikind = [
  1. | `bitmap
  2. | `byte
  3. | `int
  4. | `long
  5. | `short
  6. | `ubyte
  7. | `uint
  8. | `ulong
  9. | `ushort
]
type lkind = [
  1. | `int
  2. | `long
  3. | `uint
  4. | `ulong
]
val create : [< kind ] as 'b -> len:int -> 'b t
val create_static : [< kind ] as 'b -> len:int -> 'b t
val free_static : 'a t -> unit
val kind : 'a t -> 'a
val byte_size : 'a t -> int
val static : 'a t -> bool
val cast : 'a t -> kind:[< kind ] as 'c -> 'c t
val sizeof : [< kind ] -> int
val length : [< kind ] t -> int
val sub : [< kind ] as 'a t -> pos:int -> len:int -> 'a t
val get : [< ikind ] t -> pos:int -> int
val set : [< ikind ] t -> pos:int -> int -> unit
val get_float : [< fkind ] t -> pos:int -> float
val set_float : [< fkind ] t -> pos:int -> float -> unit
val get_hi : [< lkind ] t -> pos:int -> int
val set_hi : [< lkind ] t -> pos:int -> int -> unit
val get_lo : [< lkind ] t -> pos:int -> int
val set_lo : [< lkind ] t -> pos:int -> int -> unit
val get_long : [< lkind ] t -> pos:int -> nativeint
val set_long : [< lkind ] t -> pos:int -> nativeint -> unit
val gets : [< ikind ] t -> pos:int -> len:int -> int array
val sets : [< ikind ] t -> pos:int -> int array -> unit
val gets_float : [< fkind ] t -> pos:int -> len:int -> float array
val sets_float : [< fkind ] t -> pos:int -> float array -> unit
val gets_string : 'a t -> pos:int -> len:int -> string
val sets_string : 'a t -> pos:int -> string -> unit
val of_array : int array -> kind:[< ikind ] as 'b -> 'b t
val of_float_array : float array -> kind:[< fkind ] as 'b -> 'b t
val of_string : string -> kind:[< kind ] as 'b -> 'b t
val of_matrix : float array array -> kind:[< fkind ] as 'b -> 'b t
OCaml

Innovation. Community. Security.