Package: cffi

Function inc-pointer

Lambda List

inc-pointer (ptr offset)

Arguments

pointer --
offset -- An integer.

Return Value

A foreign pointer.

Details

The function inc-pointer will return a new pointer pointing offset bytes past pointer.

Examples

  CFFI> (foreign-string-alloc "Common Lisp")
  => #<A Mac Pointer #x102EA0>
  CFFI> (inc-pointer * 7)
  => #<A Mac Pointer #x102EA7>
  CFFI> (foreign-string-to-lisp *)
  => "Lisp"  
 

See also