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
jbuilder>= 1.0+beta8
PublishedMay 23, 2017
Source [http] https://github.com/mirage/ocaml-hex/archive/1.1.0.tar.gz
42c9b40590dbe0c6b0492f340c70f3a4
StatisticsInstalled 5 times last month.
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/hex/hex.1.1.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 = ()