package index
A platform-agnostic multi-level index for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
index-1.0.1.tbz
sha256=7f2f9efe3ed8b0a434ddf819c835f12ec03c21bc6f9ca6b7904407f146e60680
sha512=47a62af9a60a059dd4b40a32d841b1afa87a64e6cd65024dbf26622b30e7187e5cc482279143d87e4216fb94d7c9cfcf4c19bedbe7f930877b200a637a858092
doc/index.unix/Index_unix/Make/index.html
Module Index_unix.Make
Parameters
module V : Index.Value
Signature
type key = K.t
The type for keys.
type value = V.t
The type for values.
val v : ?fresh:bool -> ?readonly:bool -> log_size:int -> string -> t
The constructor for indexes.
val clear : t -> unit
clear t
clears t
so that there are no more bindings in it.
exception Invalid_key_size of key
exception Invalid_value_size of value
The exceptions raised when trying to add a key or a value of different size than encoded_size
replace t k v
binds k
to v
in t
, replacing any existing binding of k
.
Iterates over the index bindings. Order is not specified. In case of recent replacements of existing values (after the last merge), this will hit both the new and old bindings.
val force_merge : ?hook:[ `After | `Before ] Index.Private.Hook.t -> t -> unit
force_merge t
forces a merge for t
.
val flush : t -> unit
Flushes all buffers to the supplied IO
instance.
val close : t -> unit
Closes all resources used by t
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page