package vhd-format

  1. Overview
  2. Docs
type fd = {
  1. fd : Lwt_unix.file_descr;
  2. filename : string;
  3. lock : Lwt_mutex.t;
}
val openfile : string -> fd Lwt.t
val fsync : fd -> unit
val size_of_file : fd -> int64 Lwt.t
val create : string -> fd Lwt.t
val close : fd -> unit Lwt.t
exception Not_sector_aligned of int64
val assert_sector_aligned : int64 -> unit
val really_read_into : fd -> int64 -> Cstruct.t -> Cstruct.t Lwt.t
val really_read : fd -> int64 -> int -> Cstruct.t Lwt.t
val really_write : fd -> int64 -> Cstruct.t -> unit Lwt.t
OCaml

Innovation. Community. Security.