package ocamlsdl2

  1. Overview
  2. Docs
type t = Sdlrwops.t
val from_mem : bytes -> t
val from_const_mem : string -> t
val from_file : filename:string -> mode:string -> t
type input = [
  1. | `Buffer of bytes
  2. | `Filename of string
  3. | `String of string
]
val from_input : [< `Buffer of bytes | `Filename of string | `String of string ] -> t
val from_input_opt : [> `Buffer of bytes | `Filename of string | `String of string ] -> t option
val alloc : unit -> t
val free : t -> unit
val close : t -> unit
val size : t -> int64
type seek = Sdlrwops.seek =
  1. | SEEK_SET
  2. | SEEK_CUR
  3. | SEEK_END
val seek : t -> offset:int64 -> seek -> int64
val tell : t -> int64
type uint8 = int
type uint16 = int
type uint32 = int32
type uint64 = int64
val readU8 : t -> uint8
val writeU8 : t -> uint8 -> unit
module BigEndian = Sdlrwops.BigEndian
module LittleEndian = Sdlrwops.LittleEndian
OCaml

Innovation. Community. Security.