package hex

  1. Overview
  2. Docs
Minimal library providing hexadecimal converters.

Install

Dune Dependency

Authors

Maintainers

Sources

1.1.0.tar.gz
sha256=52dd28fdedf3e84ae0c0275650518cd8f7103b31cf8196fdd29a131a538f7e16
md5=42c9b40590dbe0c6b0492f340c70f3a4

Description

#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 = ()

Published: 23 May 2017

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.