bits2jn_strlist()
#
Convert a bitmask to a JSON array of strings based on a predefined mapping. Works with json_t *
.
Prototype
PUBLIC json_t *bits2jn_strlist(
uint64_t bits,
const char *bit_names[]
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The bitmask to convert. |
|
|
The array of strings corresponding to bit positions. |
Return Value
Returns a json_t *
array of strings corresponding to the active bits in the bitmask.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples