Package: cffi

Function make-pointer

Lambda List

make-pointer (address)

Arguments

address -- An integer.

Return Value

A foreign pointer.

Details

The function make-pointer will return a foreign pointer pointing to address.

Examples

  CFFI> (make-pointer 42)
  => #<FOREIGN-ADDRESS #x0000002A>
  CFFI> (pointerp *)
  => T
  CFFI> (pointer-address **)
  => 42
  CFFI> (inc-pointer *** -42)
  => #<FOREIGN-ADDRESS #x00000000>
  CFFI> (null-pointer-p *)
  => T
  CFFI> (typep ** 'foreign-pointer)
  => T  
 

See also