module Sdlrwops:sig..end
Read / Write operations
API Doc: IO category
type t
val from_mem : bytes -> t
val from_const_mem : string -> t
val from_file : filename:string -> mode:string -> t
typeinput =[ `Buffer of bytes | `Filename of string | `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 =
| |
SEEK_SET |
| |
SEEK_CUR |
| |
SEEK_END |
val seek : t -> offset:int64 -> seek -> int64
val tell : t -> int64
typeuint8 =int
typeuint16 =int
typeuint32 =int32
typeuint64 =int64
val readU8 : t -> uint8
val writeU8 : t -> uint8 -> unit
module BigEndian:sig..end
module LittleEndian:sig..end