Brassaia_index.Fanval v : hash_size:int -> entry_size:int -> int -> [ `Write ] tv ~hash_size ~entry_size n creates a fan_out for an index with hash_size and entry_size, containing n elements.
val nb_fans : 'a t -> intnb_fans t is the number of fans in t.
val search : [ `Read ] t -> int -> Import.int63 * Import.int63search t hash is the interval of offsets containing hash, if present.
val update : [ `Write ] t -> int -> Import.int63 -> unitupdate t hash off updates t so that hash is registered to be at offset off.
Finalizes the update of the fanout. This is mandatory before any search query.
val exported_size : 'a t -> intexported_size t is the size of export t. This does not actually compute the encoding of t.
val export : [ `Read ] t -> stringexport t is a string encoded form of t.
val import : hash_size:int -> string -> [ `Read ] timport ~hash_size buf decodes buf such that import ~hash_size (export t) = t if t was initially created with ~hash_size.