Module IBase__Serialization

module Key : sig ... end
type 'a serializer

Generic serializer

val create_serializer : Key.t -> 'a serializer

create a serializer from a file name given an integer key used as double-check of the file type

val read_from_file : 'a serializer -> IBase.DB.filename -> 'a option

Deserialize a file and check the keys

val write_to_file : 'a serializer -> data:'a -> IBase.DB.filename -> unit

Serialize into a file writing value

val generate_keys : unit -> int * int * int

Generate new (random) serialization keys, to be used in an ocaml toplevel