Next: , Previous: , Up: Foreign Types   [Contents][Index]


foreign-bitfield-symbols

foreign-bitfield-symbols

Syntax

Function: foreign-bitfield-symbols type value ⇒ symbols

Arguments and Values

type

A bitfield type.

value

An integer.

symbols

A potentially shared list of symbols. nil.

Description

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

defbitfield
foreign-bitfield-value