package irmin-pack

  1. Overview
  2. Docs
module Fm : sig ... end
module Mapping_file : sig ... end
type t
type location = private
  1. | Prefix
  2. | Suffix
val location_t : location Irmin.Type.t
type accessor = private {
  1. poff : Optint.Int63.t;
  2. len : Optint.Int63.t;
  3. location : location;
}
val accessor_t : accessor Irmin.Type.t
val v : Fm.t -> (t, [> Fm.Errs.t ]) Stdlib.result
val create_accessor_exn : t -> off:Optint.Int63.t -> len:int -> accessor
val create_accessor_from_range_exn : t -> off:Optint.Int63.t -> min_len:int -> max_len:int -> accessor
val create_accessor_to_prefix_exn : Mapping_file.t -> off:Optint.Int63.t -> len:int -> accessor
val shrink_accessor_exn : accessor -> new_len:int -> accessor
val create_sequential_accessor_seq : t -> min_header_len:int -> max_header_len:int -> read_len:(bytes -> int) -> (Optint.Int63.t * accessor) Irmin.Export_for_backends.Seq.t
val read_exn : t -> accessor -> bytes -> unit
val end_offset : t -> Optint.Int63.t
val suffix_start_offset : t -> Optint.Int63.t
val offset_of_soff : t -> Optint.Int63.t -> Optint.Int63.t
val soff_of_offset : t -> Optint.Int63.t -> Optint.Int63.t
val read_bytes_exn : t -> f:(string -> unit) -> off:Optint.Int63.t -> len:Optint.Int63.t -> unit
OCaml

Innovation. Community. Security.