Module Bucket_store.Make_with_fd

Version with file descriptor

Parameters

Signature

type raw_bucket = Raw_bucket.t
type t = {
fn : string;
fd : Unix.file_descr;
mutable closed : bool;
}
type bucket = {
index : int;
raw_bucket : Raw_bucket.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