package octez-proto-libs
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a
doc/octez-proto-libs.protocol-environment/Tezos_protocol_environment/V1/Make/Hex/index.html
Module Make.HexSource
Hexadecimal encoding.
Hex defines hexadecimal encodings for characters, strings and Cstruct.t buffers.
Characters
to_char x y is the character corresponding to the xy hexadecimal encoding.
Strings
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 -> stringto_string t is the binary string s such that of_string s is t.
Bytes
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 -> bytesto_bytes t is the binary string s such that of_bytes s is t.
Debugging
val hexdump_s : ?print_row_numbers:bool -> ?print_chars:bool -> t -> stringSame as hexdump except returns a string.
Pretty printing
val pp : 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.