OnFlow.Util.decode16

You're seeing just the function decode16, go back to OnFlow.Util module for more information.

Specs

decode16(String.t()) :: binary()

Decodes the given hex string to a binary. Also accepts hex strings prefixed by "0x" for convenience.

iex> decode16("")
""

iex> decode16("666f6f")
"foo"

iex> decode16("0x666f6f")
"foo"

iex> decode16("0X666f6f")
"foo"

iex> decode16("0X666f6F")
"foo"