JiffyEx v1.1.0 JiffyEx.Opts View Source
A converter that converts between the standard Elixir Keyword List options that are typically passed to functions and the options that are passed to Erlang's jiffy library.
Link to this section Summary
Functions
Parses options for the decode/2
function from a provided Elixir Keyword list into
a compatible list of options for jiffy.
Parses options for the encode/2
function from a provided Elixir Keyword list into
a compatible list of options for jiffy.
Link to this section Functions
parse_decode_opts(opts)
View Source
parse_decode_opts(Keyword.t()) :: jiffy_opts()
parse_decode_opts(Keyword.t()) :: jiffy_opts()
Parses options for the decode/2
function from a provided Elixir Keyword list into
a compatible list of options for jiffy.
This strips out any options that are not valid for jiffy's decode/2
function
and then creates a list of atoms and tuples for jiffy to use.
parse_encode_opts(opts)
View Source
parse_encode_opts(Keyword.t()) :: jiffy_opts()
parse_encode_opts(Keyword.t()) :: jiffy_opts()
Parses options for the encode/2
function from a provided Elixir Keyword list into
a compatible list of options for jiffy.
This strips out any options that are not valid for jiffy's encode/2
function
and then creates a list of atoms and tuples for jiffy to use.