package hex

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

Install

Dune Dependency

Authors

Maintainers

Sources

hex-1.2.0.tbz
sha256=10558855bb14cfce204915e7540439959d3abbaf65ba5298f8e23a55fe71189e
md5=c957b225be3df3725eaee8a3032bc359

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: 05 Nov 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.