Module Bucket_store.Bucket_store0

Standard instance; other instances for testing

type raw_bucket = Bucket.Bucket0.t
type t = Make_with_fd(Kv_hash__.Bucket.Bucket0).t = {
fn : string;
fd : Unix.file_descr;
mutable closed : bool;
}
type bucket = Make_with_fd(Kv_hash__.Bucket.Bucket0).bucket = {
index : int;
raw_bucket : Bucket.Bucket0.t;
}
val create : ?⁠sz:int -> fn:string -> unit -> t
val open_ : fn:string -> t
val blk_sz : int
val read_bucket : t -> int -> bucket
val write_bucket : t -> bucket -> unit
val sync : t -> unit
val close : t -> unit