Module Sdlrwops

module Sdlrwops: sig .. end

Read / Write operations


API Doc: IO category

type t 
val from_mem : bytes -> t

api doc

val from_const_mem : string -> t

api doc

val from_file : filename:string -> mode:string -> t

api doc

type input = [ `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

api doc

val size : t -> int64

api doc

type seek = 
| SEEK_SET
| SEEK_CUR
| SEEK_END
val seek : t -> offset:int64 -> seek -> int64

api doc

val tell : t -> int64

api doc

type uint8 = int 
type uint16 = int 
type uint32 = int32 
type uint64 = int64 
val readU8 : t -> uint8

api doc

val writeU8 : t -> uint8 -> unit

api doc

module BigEndian: sig .. end
module LittleEndian: sig .. end