[Openmcl-devel] FFI question: sizeof type.

Kaz Kylheku kaz at kylheku.com
Sun Oct 31 22:14:56 PDT 2010


On Sun, 31 Oct 2010 21:58:26 -0700, Kaz Kylheku <kaz at kylheku.com>
wrote:
> Hi all,
> 
> I'm parsing through some stack-allocated memory which doesn't have a
> declared structure type, but parts of it are represented by structures.
> 
> I need to do some adress calculations, like displacing a pointer
> by the number of bytes corresponding to a type.
> 
> What is the operator which returns the size of a foreign type?

Hmm, I totally forgot about the size calculation in that
mswin.lisp example, which uses ccl::record-length. That should do it.




More information about the Openmcl-devel mailing list