ligo/src/minutils/hex_encode.mli

25 lines
1.2 KiB
OCaml
Raw Normal View History

2016-09-08 21:13:10 +04:00
(**************************************************************************)
(* *)
(* Copyright (c) 2014 - 2016. *)
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
(* *)
(* All rights reserved. No warranty, explicit or implicit, provided. *)
(* *)
(**************************************************************************)
(** Tezos Utility library - Hexadecimal encoding *)
(** Parses a sequence of hexadecimal characters pairs as bytes *)
val hex_of_bytes: MBytes.t -> string
(** Prints a sequence of bytes as hexadecimal characters pairs *)
val bytes_of_hex: string -> MBytes.t
(** Interprets a sequence of hexadecimal characters pairs representing
bytes as the characters codes of an OCaml string. *)
val hex_decode: string -> string
(** Formats the codes of the characters of an OCaml string as a
sequence of hexadecimal character pairs. *)
val hex_encode: string -> string