]> sigrok.org Git - libsigrok.git/blob - bindings/cxx/QuantityFlag_methods.hpp
kingst-la2016: fix segfault that often occurs when a capture is aborted
[libsigrok.git] / bindings / cxx / QuantityFlag_methods.hpp
1         /** Get flags corresponding to a bitmask. */
2         static std::vector<const QuantityFlag *>
3                 flags_from_mask(unsigned int mask);
4
5         /** Get bitmask corresponding to a set of flags. */
6         static unsigned int mask_from_flags(
7                 std::vector<const QuantityFlag *> flags);