BinStruct.FlagsWriter (bin_struct v0.2.16)

Useful in registered_callbacks when library can't achieve automatic type conversion.

iex> flags = [{ 0x01, :flag_a}, {0x02, :flag_b}]
...> BinStruct.FlagsWriter.write_flags_to_integer(flags, [:flag_a])
0x01

Summary

Functions

write_flags_to_integer(flags_def, set_flags)