bit64 v0.1.2 Bit64
Documentation for Bit64
Link to this section Summary
Functions
Decodes a bit64 binary/string, to binary bytes,
Decodes a bit64 binary/string, to binary bytes
Decodes the given string, return {:ok, result} or :error
Decodes the given string.
Encode a binary bytes to bit64 binary/string
Encodes the given integer.
Link to this section Functions
Link to this function
decode(enc)
Decodes a bit64 binary/string, to binary bytes,
Examples
iex> Bit64.decode "yw"
{:ok, <<1>>}
iex> Bit64.decode <<1>>
:error
Link to this function
decode!(enc)
Decodes a bit64 binary/string, to binary bytes
Link to this function
decode_number(enc)
Decodes the given string, return {:ok, result} or :error
Link to this function
decode_number!(enc)
Decodes the given string.
Link to this function
encode(bytes)
Encode a binary bytes to bit64 binary/string
Link to this function
encode_number(x)
Encodes the given integer.