aboutsummaryrefslogtreecommitdiffstats
path: root/lib/concepts/Representation.mli
diff options
context:
space:
mode:
Diffstat (limited to 'lib/concepts/Representation.mli')
-rw-r--r--lib/concepts/Representation.mli13
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/concepts/Representation.mli b/lib/concepts/Representation.mli
index 9d0a8f5..21c43a4 100644
--- a/lib/concepts/Representation.mli
+++ b/lib/concepts/Representation.mli
@@ -2,6 +2,15 @@
type blob
(** encode a blob into a value *)
-val blob_of_value: Value.value -> blob
+val blob_of_value : Value.value -> blob
+
(** decode a value from a blob *)
-val value_of_blob: blob -> Value.value
+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