Hexadecimal encoding and decoding with a low footprint and a clean API.
Find a file
2024-03-18 11:52:29 +01:00
CHANGES.md Rename pp to pp_hexdump; provide pp for brevity (requested by @palainp) 2024-03-18 11:52:29 +01:00
dune minor fixes, add tests 2024-03-14 20:55:37 +01:00
dune-project initial commit 2024-03-14 13:04:14 +01:00
LICENSE.md minor 2024-03-14 21:53:38 +01:00
ohex.ml Rename pp to pp_hexdump; provide pp for brevity (requested by @palainp) 2024-03-18 11:52:29 +01:00
ohex.mli Rename pp to pp_hexdump; provide pp for brevity (requested by @palainp) 2024-03-18 11:52:29 +01:00
ohex.opam minor 2024-03-14 21:54:11 +01:00
README.md minor 2024-03-14 13:14:34 +01:00
tests.ml encode and encode_into tests 2024-03-14 21:14:35 +01:00

oHEX

This package with minimal dependency cone provides functionality to decode and encode strings into hexadecimal representation.

As example, Ohex.decode "4142" = "AB". And Ohex.encode "AB" = "4142".

There's even the property, for all strings s: Ohex.(decode (encode s)) = s.

A pretty-printer is provided as well.