aboutsummaryrefslogtreecommitdiffstats
path: root/lib/concepts/Representation.mli
blob: 21c43a46c10570ecd130e70134bb1fedd6f75853 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
(** an abstract representation of an encoded value *)
type blob

(** encode a blob into a value *)
val blob_of_value : Value.value -> blob

(** decode a value from a blob *)
val value_of_blob : blob -> Value.value

(* TODO: see the comments on Backend.Storage.LMDB *)

(** create a blob from the data represented by bytes *)
val blob_of_bytes : bytes -> blob

(** return a bytes containing the data underlying a blob *)
val bytes_of_blob : blob -> bytes