<div dir="ltr">Just starting to dig into SIP. I have a .h file that contains the following public method:<br><br><font face="monospace, monospace">void Allocate(int width, int height, int pitch, bool withHost, float *devMem = NULL, float* hostMem = NULL); </font><br><br> have created a corresponding .sip file:<br><br><font face="monospace, monospace">1 //SIP wrapper for CUDA Image </font><div><font face="monospace, monospace">2 </font></div><div><font face="monospace, monospace">3 class CudaImage </font></div><div><font face="monospace, monospace">4 { </font></div><div><font face="monospace, monospace">5 %TypeHeaderCode </font></div><div><font face="monospace, monospace">6 #include "cudaImage.h" </font></div><div><font face="monospace, monospace">7 %End </font></div><div><font face="monospace, monospace">8 </font></div><div><font face="monospace, monospace">9 public: </font></div><div><font face="monospace, monospace">10 CudaImage(); </font></div><div><font face="monospace, monospace">11 </font></div><div><font face="monospace, monospace">12 void Allocate(int width, int height, int pitch, bool withHost, float *devMem=NULL, float *hostMem=NULL) /KeywordArgs="All"/; </font></div><div><font face="monospace, monospace">13 double Download(); </font></div><div><font face="monospace, monospace">14 </font></div><div><font face="monospace, monospace">1</font><span style="font-family:monospace,monospace">5 </span></div><div><span style="font-family:monospace,monospace">16 int width; </span></div><div><span style="font-family:monospace,monospace">17 int height; </span></div><div><span style="font-family:monospace,monospace">18 int pitch; </span></div><div><span style="font-family:monospace,monospace">19 };</span></div><div><div><font face="monospace, monospace"><br></font>Using CMake, I have the build working, can import the module into Python and can call the constructor (so limited success). I can also call the Allocate method. Unfortunately, on the Python side, I can not get the float *devMem=NULL or float *hostMem=Nullarguments exposed. I have been over the SIP documentation and no Annotations are leaping out as missing.<br><br>The ultimate goal is to pass a numpy array (.data attribute I believe) to the hostMemargument.<br><br>How does one go about exposing pointers in SIP? What about pointers with a default, NULL, argument?<br><br>(Python 3.5, PyQt4, SIP 4.18.x)<br>
</div></div><div><br></div><div>Thanks!</div></div>