package ez_hash

  1. Overview
  2. Docs

Module EzHex.HexSource

Sourcetype t = string
Sourceval compare : t -> t -> int
Sourceval equal : t -> t -> bool
Sourceval encode : string -> t

encode s converts a string to a lowercase hexadecimal notation

Sourceval encodeU : string -> t

encodeU s converts a string to an uppercase hexadecimal notation

Sourceval decode : t -> string

decode hex converts a string in hexadecimal notation into its corresponding decoded string. Can raise Invalid_argument.

Sourceval encode_bytes : bytes -> t

encode s converts a string to a lowercase hexadecimal notation

Sourceval encodeU_bytes : bytes -> t

encodeU s converts a string to an uppercase hexadecimal notation

Sourceval decode_bytes : t -> bytes

decode hex converts a string in hexadecimal notation into its corresponding decoded string. Can raise Invalid_argument.