hex

AuthorsThomas Gazagnaire and Trevor Summers Smith
LicenseISC
Homepagehttps://github.com/mirage/ocaml-hex
Issue Trackerhttps://github.com/mirage/ocaml-hex/issues
Maintainerthomas@gazagnaire.org
Dependencies
&cstruct>= 1.7.0
ocamlbuild
ocamlfind
PublishedOct 13, 2015
Source [http] https://github.com/mirage/ocaml-hex/archive/1.0.0.tar.gz
e8af07c37b54076dc33a86e203b0c0d3
StatisticsInstalled 42 times last month.
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/hex/hex.1.0.0/opam

Minimal library providing hexadecimal converters.

#require "hex";;
# Hex.of_string "Hello world!";;
- : Hex.t = "48656c6c6f20776f726c6421"
# Hex.to_string "dead-beef";;
- : string = "ޭ��"
# Hex.hexdump (Hex.of_string "Hello world!\n")
00000000: 4865 6c6c 6f20 776f 726c 6421 0a        Hello world!.
- : unit = ()