View Source hex (util v1.3.4)
Hexadecimal conversion functions
Link to this section Summary
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.