View Source hex (util v1.1.5)

Hexadecimal conversion functions

Link to this section Summary

Functions

Convert a hex digit in range [$0..$9,$a..$f,$A..$F] to integer.
Convert an integer to a hex digit in range [0..15].
Convert a hex string to binary.
Convert an iolist to a hex string.
Convert a hex string/binary to integer.

Link to this section Functions

-spec dehex(char()) -> integer().
Convert a hex digit in range [$0..$9,$a..$f,$A..$F] to integer.
-spec hex(integer()) -> char().
Convert an integer to a hex digit in range [0..15].
-spec to_bin(string()) -> binary().
Convert a hex string to binary.
-spec to_hex(integer() | iolist()) -> binary().
Convert an iolist to a hex string.
-spec to_int(string() | binary()) -> integer().
Convert a hex string/binary to integer.