package irmin-pack

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Io : sig ... end
val create_rw : path:string -> overwrite:bool -> auto_flush_threshold:int -> auto_flush_callback:(unit -> unit) -> (t, [> Io.create_error ]) Stdlib.result
val open_rw : path:string -> end_offset:Optint.Int63.t -> dead_header_size:int -> auto_flush_threshold:int -> auto_flush_callback:(unit -> unit) -> (t, [> `Inconsistent_store | `Invalid_argument | `Io_misc of Io.misc_error | `No_such_file_or_directory | `Not_a_file | `Read_on_closed | `Read_out_of_bounds ]) Stdlib.result
val open_ro : path:string -> end_offset:Optint.Int63.t -> dead_header_size:int -> (t, [> `Inconsistent_store | `Invalid_argument | `Io_misc of Io.misc_error | `No_such_file_or_directory | `Not_a_file | `Read_on_closed | `Read_out_of_bounds ]) Stdlib.result
val close : t -> (unit, [> `Double_close | `Io_misc of Io.misc_error | `Pending_flush ]) Stdlib.result
val end_offset : t -> Optint.Int63.t
val read_to_string : t -> off:Optint.Int63.t -> len:int -> (string, [> Io.read_error ]) Stdlib.result
val read_exn : t -> off:Optint.Int63.t -> len:int -> bytes -> unit
val append_exn : t -> string -> unit
val flush : t -> (unit, [> Io.write_error ]) Stdlib.result
val fsync : t -> (unit, [> Io.write_error ]) Stdlib.result
val refresh_end_offset : t -> Optint.Int63.t -> (unit, [> `Rw_not_allowed ]) Stdlib.result
val readonly : t -> bool
val auto_flush_threshold : t -> int option
val empty_buffer : t -> bool
val path : t -> string