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

2010-06-21 Thread Roman Yakovenko
On Tue, Jun 22, 2010 at 6:37 AM, wrote: > Allo Nat, > > Thank you very much for your reply. I didn't realized I could have this > flexibility with py++ generated code. Yes it has(http://language-binding.net/pyplusplus/documentation/functions/transformation/transformation.html), but your use cas

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

2010-06-21 Thread heroxbd
Allo Nat, Thank you very much for your reply. I didn't realized I could have this flexibility with py++ generated code. Now I could interface these functions. Cheers! Benda Nat Goodspeed writes: > You want to write a C++ wrapper function something like this: > > std::string wrapped_read(size_

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

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