Next: foreign-slot-pointer, Previous: foreign-slot-names, Up: Foreign Types [Contents][Index]
A foreign struct type.
A symbol.
An integer.
The function foreign-slot-offset
returns the offset in
bytes of a slot in a foreign struct type.
(defcstruct timeval (tv-secs :long) (tv-usecs :long)) CFFI> (foreign-slot-offset '(:struct timeval) 'tv-secs) ⇒ 0 CFFI> (foreign-slot-offset '(:struct timeval) 'tv-usecs) ⇒ 4
defcstruct
foreign-slot-names
foreign-slot-pointer
foreign-slot-value