module Cdb:sig
..end
DJB's fast, reliable, simple package for creating and reading constant databases.
CDB Definition. http://cr.yp.to/cdb.html
OCaml code Copyright (c) 2003 Dustin Sallings <dustin@spy.net>
arch-tag: 1E3B7401-2AE1-11D8-A379-000393CB0F1E
Snarfed from: <http://www.west.spy.net/~dustin/projects/ocaml/doc/Cdb.html>
Hacked by KW 20060908T025444 <http://www.lib.uchicago.edu/keith/>
-- inlined Extoption.is_none to remove sole external dependency
Author(s): Dustin Sallings
type
cdb_creator = {
|
table_count : |
|
mutable pointers : |
|
out : |
val is_none : 'a option -> bool
val hash_init : int64
val ff64 : int64
val ffffffff64 : int64
val ff32 : int32
val hash : string -> int32
val write_le : cdb_creator -> int -> unit
val write_le32 : cdb_creator -> int32 -> unit
val open_out : string -> cdb_creator
val cdb_creator_of_out_channel : Pervasives.out_channel -> cdb_creator
val hash_to_table : int32 -> int
val hash_to_bucket : int32 -> int -> int
val pos_out_32 : Pervasives.out_channel -> int32
val add : cdb_creator -> string -> string -> unit
val process_table : cdb_creator ->
int array ->
(int32 * int32) list Pervasives.ref ->
(int, int32 * int32) Hashtbl.t -> int -> int -> unit
val close_cdb_out : cdb_creator -> unit
val read_le : Pervasives.in_channel -> int
val read_le32 : Pervasives.in_channel -> int32
val iter : (string -> string -> 'a) -> string -> unit
type
cdb_file = {
|
f : |
|
tables : |
val open_cdb_in : string -> cdb_file
val close_cdb_in : cdb_file -> unit
val get_matches : cdb_file -> string -> string Stream.t
val find : cdb_file -> string -> string