Re: [C++-sig] interfacing headle binary file library, raw pointer and buffer

2010-06-20 Thread heroxbd
Hello, I have just found this thread interesting http://thread.gmane.org/gmane.comp.python.c++/12912/focus=12913 the pointers are PyString_FromStringAndSize PyArg_ParseTuple* and http://docs.python.org/c-api/buffer.html How can those fit in py++ and boost.python? Cheers, -- XU Benda Rese

Re: [C++-sig] interfacing headle binary file library, raw pointer and buffer

2010-06-20 Thread Nat Goodspeed
hero...@gmail.com wrote: I am trying to interface a binary file library using py++. There is a function in the library like int read(void* buffer, size_t len) which is hard to wrap. It read a piece (size len) of the file, and store it in buffer, and then return the buffer length (most l