summaryrefslogtreecommitdiff
path: root/sid.ml
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2018-11-06 22:16:13 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2018-11-06 22:16:18 +0100
commit9991be9aeea6bc78b60603343e04245d374cbb93 (patch)
treefb826753ea0a6672acba9db8a3cf32b97e858fe1 /sid.ml
parent5047b8e8d990d3d49943b48a311ac8e14b439523 (diff)
downloadocaml-sid-9991be9aeea6bc78b60603343e04245d374cbb93.tar.gz
sid: add Sid.{of,to}_bytes aliases
Establish symmetry with of_string / to_string and the StringFmt module.
Diffstat (limited to 'sid.ml')
-rw-r--r--sid.ml3
1 files changed, 3 insertions, 0 deletions
diff --git a/sid.ml b/sid.ml
index 2cced76..38c97f2 100644
--- a/sid.ml
+++ b/sid.ml
@@ -398,4 +398,7 @@ end
let of_string = StringFmt.decode
let to_string = StringFmt.encode
+let of_bytes = PacketRep.decode
+let to_bytes = PacketRep.encode
+
type t = sid