Module Vhd_format_lwt.IO

Lwt file I/O

val debug_io : bool Stdlib.ref
include Vhd_format.S.FILE with type 'a t = 'a Lwt.t
include Vhd_format.S.TIME
val now : unit -> int32
type fd
include Vhd_format.S.RW with type handle := fd with type 'a t = 'a Lwt.t
include Vhd_format.S.ASYNC with type 'a t = 'a Lwt.t
type 'a t = 'a Lwt.t
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t
val fail : exn -> 'a t
val return : 'a -> 'a t
val really_read : fd -> int64 -> Cstruct.t -> unit t
val really_write : fd -> int64 -> Cstruct.t -> unit t
val exists : string -> bool t
val openfile : string -> bool -> fd t
val fsync : fd -> unit
val create : string -> fd t
val close : fd -> unit t
val get_file_size : string -> int64 t
val get_modification_time : string -> int32 t
val lseek : fd -> int64 -> Unix.seek_command -> int64 t
val lseek_data : fd -> int64 -> int64 t
val lseek_hole : fd -> int64 -> int64 t
val to_file_descr : fd -> Lwt_unix.file_descr