Base.decode16
You're seeing just the function
decode16
, go back to Base module for more information.
Specs
Decodes a base 16 encoded string into a binary string.
Options
The accepted options are:
:case
- specifies the character case to accept when decoding
The values for :case
can be:
:upper
- only allows upper case characters (default):lower
- only allows lower case characters:mixed
- allows mixed case characters
Examples
iex> Base.decode16("666F6F626172")
{:ok, "foobar"}
iex> Base.decode16("666f6f626172", case: :lower)
{:ok, "foobar"}
iex> Base.decode16("666f6F626172", case: :mixed)
{:ok, "foobar"}