Package: cffi

Function foreign-bitfield-symbols

Lambda List

foreign-bitfield-symbols (type value)

Arguments

type -- A bitfield type.
value -- An integer.
symbols -- A potentially shared list of symbols. nil.

Details

The function foreign-bitfield-symbols returns a possibly shared list of symbols that correspond to value in type.

Examples

  (defbitfield flags
    (flag-a 1)
    (flag-b 2)
    (flag-c 4))

CFFI> (foreign-bitfield-symbols 'boolean #b101) => (FLAG-A FLAG-C)
 

See also