[Openmcl-devel] FFI question: sizeof type.

Kaz Kylheku kaz at kylheku.com
Sun Oct 31 21:58:26 PDT 2010


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?

Thanks.




More information about the Openmcl-devel mailing list