summaryrefslogtreecommitdiff
path: root/sid.mli
diff options
context:
space:
mode:
Diffstat (limited to 'sid.mli')
-rw-r--r--sid.mli9
1 files changed, 4 insertions, 5 deletions
diff --git a/sid.mli b/sid.mli
index 7c0451c..12d31a9 100644
--- a/sid.mli
+++ b/sid.mli
@@ -9,16 +9,15 @@ val get_sub_auths : t -> sub_auths
module StringFmt :
sig
- val decode : string -> t
- val from_string_res : string -> (t, string) result
- val from_string_opt : string -> t option
+ val decode : string -> (t, string result)
val encode : t -> string
end
module PacketRep :
sig
- val encode : t -> bytes
- val decode : bytes -> (t, string) result
+ type endian = Big | Little
+ val encode : ?endian:endian -> t -> bytes
+ val decode : ?endian:endian -> bytes -> (t, string) result
end
module WellKnown :