bits2gbuffer()

bits2gbuffer()#

Convert a bitmask to a gbuffer containing a string representation of the active bits. Works with gbuffer_t *.

Prototype

PUBLIC gbuffer_t *bits2gbuffer(
    uint64_t    bits,
    const char *bit_names[]
);
        

Parameters

Key

Type

Description

bits

uint64_t

The bitmask to convert.

bit_names

const char *[]

The array of strings corresponding to bit positions.


Return Value

Returns a gbuffer_t * containing the string representation of the active bits.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples