|
actf 0.0.1
An acute CTF reader
|
Bit map flags related methods. More...
Go to the source code of this file.
Typedefs | |
| typedef struct actf_flags | actf_flags |
| Flags map names to bit index range sets. | |
Functions | |
| const char * | actf_flags_find (const actf_flags *f, uint64_t val, actf_it *it) |
| Find the next flag name matching the provided value. | |
| const char * | actf_flags_find_first_match (const actf_flags *f, uint64_t val) |
| Find the first flag name matching the provided value. | |
Bit map flags related methods.
| const char * actf_flags_find | ( | const actf_flags * | f, |
| uint64_t | val, | ||
| actf_it * | it ) |
Find the next flag name matching the provided value.
A value can be mapped to several flags, so to read them all out, you should call actf_flags_find() repeatedly with the same iterator until NULL is returned.
| f | the flags |
| val | the value |
| it | the iterator to use, it must be zero initialized on the first call and then unmodified for subsequent calls. |
| const char * actf_flags_find_first_match | ( | const actf_flags * | f, |
| uint64_t | val ) |
Find the first flag name matching the provided value.
Convenience function for when you only care about the first matching name.
| f | the flags |
| val | the value |