Paste number 23955: mem-ref into array of structs

Paste number 23955: mem-ref into array of structs
Pasted by: junrue67
When:2 years, 10 months ago
Share:Tweet this! | http://paste.lisp.org/+IHF
Channel:#lisp
Paste contents:
Raw Source | XML | Display As
[3]> (defvar base-ptr (cffi:foreign-alloc 'bitmap :count 4))
BASE-PTR
[4]> base-ptr
#<FOREIGN-ADDRESS #x003DFF90>
[5]> (cffi:mem-ref base-ptr 'bitmap (* 2 cffi:foreign-type-size 'bitmap)))
#<FOREIGN-ADDRESS #x003DFFC8>

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.