package ocamlsdl2

  1. Overview
  2. Docs
type t
val from_mem : string -> t
val from_file : filename:string -> mode:string -> t
type input = [
  1. | `Buffer of string
  2. | `Filename of string
]
val from_input : [< `Buffer of string | `Filename of string ] -> t
val from_input_opt : [> `Buffer of string | `Filename of string ] -> t option
val alloc : unit -> t
val free : t -> unit
val close : t -> unit
type uint8 = int
type uint16 = int
type uint32 = int
type uint64 = int
val readU8 : t -> uint16
val writeU8 : t -> uint16 -> int
module BigEndian : sig ... end
module LittleEndian : sig ... end
OCaml

Innovation. Community. Security.