File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,15 @@ module BConf = struct
29
29
val_ " Bytes.contains" Bytes. contains (t @-> char @-> returning_or_exc bool );
30
30
val_ " Bytes.contains_from" Bytes. contains_from (t @-> int @-> char @-> returning_or_exc bool );
31
31
val_ " Bytes.rcontains_from" Bytes. rcontains_from (t @-> int @-> char @-> returning_or_exc bool );
32
+ (* UTF codecs and validations *)
32
33
val_ " Bytes.is_valid_utf_8" Bytes. is_valid_utf_8 (t @-> returning bool );
33
34
val_ " Bytes.is_valid_utf_16be" Bytes. is_valid_utf_16be (t @-> returning bool );
34
35
val_ " Bytes.is_valid_utf_16le" Bytes. is_valid_utf_16le (t @-> returning bool );
36
+ (* Binary encoding/decoding of integers *)
37
+ val_ " Bytes.get_uint8" Bytes. get_uint8 (t @-> int @-> returning_or_exc int );
38
+ val_ " Bytes.get_int8" Bytes. get_int8 (t @-> int @-> returning_or_exc int );
39
+ val_ " Bytes.set_uint8" Bytes. set_uint8 (t @-> int @-> int @-> returning_or_exc unit );
40
+ val_ " Bytes.set_int8" Bytes. set_int8 (t @-> int @-> int @-> returning_or_exc unit );
35
41
]
36
42
end
37
43
You can’t perform that action at this time.
0 commit comments