Mavryk_stdlib.HexHexadecimal encoding.
TzHex defines hexadecimal encodings for characters, strings and Cstruct.t buffers.
The type var hexadecimal values.
to_char x y is the character corresponding to the xy hexadecimal encoding.
Returns None if x or y are not in the ranges '0'..'9', 'a'..'f', or 'A'..'F'.
val of_string : ?ignore:char list -> string -> tof_string s is the hexadecimal representation of the binary string s. If ignore is set, skip the characters in the list when converting. Eg of_string ~ignore:[' '] "a f". The default value of ignore is []).
val to_string : t -> string optionto_string t is the binary string s such that of_string s is t.
Returns None if t contains a character that is not in the range '0'..'9', 'a'..'f', or 'A'..'F'.
val of_bytes : ?ignore:char list -> bytes -> tof_bytes s is the hexadecimal representation of the binary string s. If ignore is set, skip the characters in the list when converting. Eg of_bytes ~ignore:[' '] "a f". The default value of ignore is []).
val to_bytes : t -> bytes optionto_bytes t is the binary string s such that of_bytes s is t.
Returns None if t contains a character that is not in the range '0'..'9', 'a'..'f', or 'A'..'F'.
val to_bytes_exn : t -> bytesto_bytes_exn t is the binary string s such that of_bytes s is t.
val hexdump_s : ?print_row_numbers:bool -> ?print_chars:bool -> t -> stringSame as hexdump except returns a string.
val pp : Stdlib.Format.formatter -> t -> unitpp fmt t will output a human-readable hex representation of t to the formatter fmt.
val show : t -> stringshow t will return a human-readable hex representation of t as a string.