Bytesrw.BytesExtended Stdlib.Bytes module.
include module type of Stdlib.Bytesval to_seq : t -> char Stdlib.Seq.tval to_seqi : t -> (int * char) Stdlib.Seq.tval of_seq : char Stdlib.Seq.t -> tval get_utf_8_uchar : t -> int -> Stdlib.Uchar.utf_decodeval set_utf_8_uchar : t -> int -> Stdlib.Uchar.t -> intval is_valid_utf_8 : t -> boolval get_utf_16be_uchar : t -> int -> Stdlib.Uchar.utf_decodeval set_utf_16be_uchar : t -> int -> Stdlib.Uchar.t -> intval is_valid_utf_16be : t -> boolval get_utf_16le_uchar : t -> int -> Stdlib.Uchar.utf_decodeval set_utf_16le_uchar : t -> int -> Stdlib.Uchar.t -> intval is_valid_utf_16le : t -> boolmodule Slice : sig ... endByte slices.
module Stream : sig ... endByte streams.
module Reader : sig ... endByte stream readers.
module Writer : sig ... endByte stream writers.
val pp_hex :
?addr:bool ->
?addr_start:int ->
?addr_div:int ->
?count:int ->
?group:int ->
?ascii:bool ->
?start:int ->
?len:int ->
unit ->
Stdlib.Format.formatter ->
bytes ->
unitpp_hex ~addr ~addr_start ~count ~group ~ascii ~start ~len:n () ppf b prints the bytes in range [start;start + n - 1] in hexadecimal. start defaults to 0 and len to length b - start. Formats nothing if len is 0. The formatting options are as follows:
addr is true (defaults to false), starts each line with the index of the first byte on the line as a 32-bit or 64-bit hexadecimal number (adjusted according the values of addr_start and len). Finishes the output with a blank line that has the address following the last byte.addr_start is specified uses this as the start index for the first byte (defaults to start)addr_div is specified addresses are divided by this number. Defaults to 1. For example using 4 indexes by 32-bits.count defines the number of bytes, printed on each line. Defaults to 16.group is the number of bytes that are grouped together. Defaults to 2, i.e. shows hexadecimal 16-bit numbers.ascii is true (defaults to false) ends each line with a column with the bytes interpreted as US-ASCII.