Next: foreign-bitfield-value, Previous: define-parse-method, Up: Foreign Types [Contents][Index]
A bitfield type.
An integer.
A potentially shared list of symbols.
nil
.
The function foreign-bitfield-symbols
returns a possibly shared
list of symbols that correspond to value in type.
(defbitfield flags (flag-a 1) (flag-b 2) (flag-c 4)) CFFI> (foreign-bitfield-symbols 'flags #b101) ⇒ (FLAG-A FLAG-C)