package hex

  1. Overview
  2. Docs
Library providing hexadecimal converters

Install

Dune Dependency

Authors

Maintainers

Sources

hex-v1.3.0.tbz
sha256=4ace0dfffe3ad19f06ce031ffa3b4beeb9c6ac55ae6e22d01aaea162ef3165a4
md5=c0baa72c9d7495cd3c6646f9a50b03c7

Description

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

Published: 02 Feb 2019

README

ocaml-hex -- a 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 = ()
OCaml

Innovation. Community. Security.