summaryrefslogtreecommitdiff
path: root/sid.mli
diff options
context:
space:
mode:
Diffstat (limited to 'sid.mli')
-rw-r--r--sid.mli6
1 files changed, 6 insertions, 0 deletions
diff --git a/sid.mli b/sid.mli
index 8c3a5fa..69a439e 100644
--- a/sid.mli
+++ b/sid.mli
@@ -433,3 +433,9 @@ val of_string : string -> (t, string) result
val to_string : t -> string
(** [to_string s] is an alias for [StringFmt.encode s]. *)
+val of_bytes : ?endian:PacketRep.endian -> bytes -> (t, string) result
+(** [of_bytes endian b] is an alias for [PacketRep.decode endian b]. *)
+
+val to_bytes : ?endian:PacketRep.endian -> t -> bytes
+(** [to_bytes endian b] is an alias for [PacketRep.encode endian b]. *)
+