Source file serializer.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
(** [Sanddb.Serializer] contains the different kind of serializers that are possible with SandDB.*)

module type Generic_serializer = sig
  type t
  val t_of_string : string -> t
  val string_of_t :  t -> string
end;;

module type Json_serializer = sig
  type t
  val t_of_string : string -> t
  val string_of_t : ?len:int -> t -> string
end;;

module type Biniou_serializer = sig
  type t
  val t_of_string : ?pos:int -> string -> t
  val string_of_t : ?len:int -> t -> string
end;;