package mgit

  1. Overview
  2. Docs

Module Mgit_unix.BlockSource

Sourceval error_msgf : ('a, Format.formatter, unit, ('b, [> `Msg of string ]) result) format4 -> 'a
Sourcetype t = {
  1. fd : Unix.file_descr;
  2. sector_size : int;
  3. length : int;
  4. mutex : Mutex.t;
}
Sourceval sector_size : t -> int
Sourceval length : t -> int
Sourceval pread : Unix.file_descr -> bytes -> off:int -> unit
Sourceval pwrite : Unix.file_descr -> bytes -> off:int -> unit
Sourceval atomic_read : t -> src_off:int -> ?dst_off:??? -> Bstr.t -> unit
Sourceval atomic_write : t -> ?src_off:??? -> dst_off:int -> Bstr.t -> unit
Sourceval of_fd : sector_size:int -> Unix.file_descr -> t
Sourceval check_sector_size : int -> (unit, [> `Msg of string ]) result
Sourceval load : ?sector_size:??? -> string -> (t, [> `Msg of string ]) result
Sourceval create : ?sector_size:??? -> string -> int -> (t, [> `Msg of string ]) result
Sourceval close : t -> unit