sig
外部函数 length : bytes -> int = "%bytes_length"
外部函数 get : bytes -> int -> char = "%bytes_safe_get"
外部函数 set : bytes -> int -> char -> unit = "%bytes_safe_set"
外部函数 create : int -> bytes = "caml_create_bytes"
值 make : int -> char -> bytes
值 init : int -> f:(int -> char) -> bytes
值 empty : bytes
值 copy : bytes -> bytes
值 of_string : string -> bytes
值 to_string : bytes -> string
值 sub : bytes -> pos:int -> len:int -> bytes
值 sub_string : bytes -> pos:int -> len:int -> string
值 extend : bytes -> left:int -> right:int -> bytes
值 fill : bytes -> pos:int -> len:int -> char -> unit
值 blit
src:bytes -> src_pos:int -> dst:bytes -> dst_pos:int -> len:int -> unit
值 blit_string
src:string -> src_pos:int -> dst:bytes -> dst_pos:int -> len:int -> unit
值 concat : sep:bytes -> bytes list -> bytes
值 cat : bytes -> bytes -> bytes
值 iter : f:(char -> unit) -> bytes -> unit
值 iteri : f:(int -> char -> unit) -> bytes -> unit
值 map : f:(char -> char) -> bytes -> bytes
值 mapi : f:(int -> char -> char) -> bytes -> bytes
值 fold_left : f:('acc -> char -> 'acc) -> init:'acc -> bytes -> 'acc
值 fold_right : f:(char -> 'acc -> 'acc) -> bytes -> init:'acc -> 'acc
值 for_all : f:(char -> bool) -> bytes -> bool
值 exists : f:(char -> bool) -> bytes -> bool
值 trim : bytes -> bytes
值 escaped : bytes -> bytes
值 index : bytes -> char -> int
值 index_opt : bytes -> char -> int option
值 rindex : bytes -> char -> int
值 rindex_opt : bytes -> char -> int option
值 index_from : bytes -> int -> char -> int
值 index_from_opt : bytes -> int -> char -> int option
值 rindex_from : bytes -> int -> char -> int
值 rindex_from_opt : bytes -> int -> char -> int option
值 contains : bytes -> char -> bool
值 contains_from : bytes -> int -> char -> bool
值 rcontains_from : bytes -> int -> char -> bool
值 uppercase_ascii : bytes -> bytes
值 lowercase_ascii : bytes -> bytes
值 capitalize_ascii : bytes -> bytes
值 uncapitalize_ascii : bytes -> bytes
类型 t = bytes
值 compare : BytesLabels.t -> BytesLabels.t -> int
值 equal : BytesLabels.t -> BytesLabels.t -> bool
值 starts_with : prefix:bytes -> bytes -> bool
值 ends_with : suffix:bytes -> bytes -> bool
值 unsafe_to_string : bytes -> string
值 unsafe_of_string : string -> bytes
值 split_on_char : sep:char -> bytes -> bytes list
值 to_seq : BytesLabels.t -> char Stdlib.Seq.t
值 to_seqi : BytesLabels.t -> (int * char) Stdlib.Seq.t
值 of_seq : char Stdlib.Seq.t -> BytesLabels.t
值 get_utf_8_uchar : BytesLabels.t -> int -> Stdlib.Uchar.utf_decode
值 set_utf_8_uchar : BytesLabels.t -> int -> Stdlib.Uchar.t -> int
值 is_valid_utf_8 : BytesLabels.t -> bool
值 get_utf_16be_uchar : BytesLabels.t -> int -> Stdlib.Uchar.utf_decode
值 set_utf_16be_uchar : BytesLabels.t -> int -> Stdlib.Uchar.t -> int
值 is_valid_utf_16be : BytesLabels.t -> bool
值 get_utf_16le_uchar : BytesLabels.t -> int -> Stdlib.Uchar.utf_decode
值 set_utf_16le_uchar : BytesLabels.t -> int -> Stdlib.Uchar.t -> int
值 is_valid_utf_16le : BytesLabels.t -> bool
值 get_uint8 : bytes -> int -> int
值 get_int8 : bytes -> int -> int
值 get_uint16_ne : bytes -> int -> int
值 get_uint16_be : bytes -> int -> int
值 get_uint16_le : bytes -> int -> int
值 get_int16_ne : bytes -> int -> int
值 get_int16_be : bytes -> int -> int
值 get_int16_le : bytes -> int -> int
值 get_int32_ne : bytes -> int -> int32
值 get_int32_be : bytes -> int -> int32
值 get_int32_le : bytes -> int -> int32
值 get_int64_ne : bytes -> int -> int64
值 get_int64_be : bytes -> int -> int64
val get_int64_le : bytes -> int -> int64
val set_uint8 : bytes -> int -> int -> unit
val set_int8 : bytes -> int -> int -> unit
val set_uint16_ne : bytes -> int -> int -> unit
val set_uint16_be : bytes -> int -> int -> unit
val set_uint16_le : bytes -> int -> int -> unit
val set_int16_ne : bytes -> int -> int -> unit
val set_int16_be : bytes -> int -> int -> unit
val set_int16_le : bytes -> int -> int -> unit
val set_int32_ne : bytes -> int -> int32 -> unit
val set_int32_be : bytes -> int -> int32 -> unit
val set_int32_le : bytes -> int -> int32 -> unit
val set_int64_ne : bytes -> int -> int64 -> unit
val set_int64_be : bytes -> int -> int64 -> unit
val set_int64_le : bytes -> int -> int64 -> unit
external unsafe_get : bytes -> int -> char = "%bytes_unsafe_get"
external unsafe_set : bytes -> int -> char -> unit = "%bytes_unsafe_set"
external unsafe_blit
src:bytes -> src_pos:int -> dst:bytes -> dst_pos:int -> len:int -> unit
= "caml_blit_bytes" [@@noalloc]
external unsafe_blit_string
src:string -> src_pos:int -> dst:bytes -> dst_pos:int -> len:int -> unit
= "caml_blit_string" [@@noalloc]
external unsafe_fill : bytes -> pos:int -> len:int -> char -> unit
= "caml_fill_bytes" [@@noalloc]
val unsafe_escape : bytes -> bytes
end