Re: [cffi-devel] How would i write the exact equivelant of a C New Operator

2013-10-29 Thread Brian Spilsbury
http://docs.opencv.org/modules/core/doc/basic_structures.html CvPoint2D32f is a C structure, so you should be able to replace new CvPoint2D32f[ board_n ]; with malloc(sizeof (CvPoint2D32f) * board_n); but new upon a struct type in C++ also initializes the contents to the appropriate zero values, s

[cffi-devel] What foreign type would this be...I could use help writing a function definition for documentation

2013-10-29 Thread Joeish W
the question is about CvArr* in OpenCV it is defined in the source like this /* CvArr* is used to pass arbitrary  * array-like data structures  * into functions where the particular  * array type is recognized at runtime:  */ typedef void CvArr; and documentation like this CvArr struct