package hexstring

All checked builds pass
  1. Overview
  2. Docs
A library to encode to and decode from hexadecimal strings

Install

dune-project
 Dependency

Authors

Maintainers

Sources

hexstring-0.2.1.tbz
sha256=ab05463895e15c91d47e5aa18be70f00e35bbb8ea7398707306483a7b3e82e20
sha512=a3e51514c5b36be8cc3aee23d41f67a361fbe218a17a9f7c8d0cb7448157ec700547173eba5325611ab4002c4716f709b6ea43c0f204a76702869e0cdd8ad052

Description

Added to opam-repository:

README

Hexstring

An OCaml library to encode/decode hexadecimal strings.

Install with opam:

opam install hexstring

Add to your dune file:

(libraries hexstring)

Use as such:

(* you can encode bytes to an hexstring *)
b = Bytes.of_string "\x01\x02";;
s = Hexstring.encode b;; (* "0102" *)

(* you can also decode some hexstring, which returns a result of bytes *)
d = match Hexstring.decode s with
| Error err -> printf "error: %s\n"
| Ok b' -> assert b = b'

Dependencies (3)

  1. ppx_inline_test >= "v0.14.1"
  2. dune >= "2.8"
  3. ocaml >= "4.08"

Dev Dependencies

None

Optional Dependencies

None

Used by

None

Conflicts

None

Build status

Results of building hexstring with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
0.2.1 (this version) good good good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure