How to expose raw byte buffers with Boost::Python?
问题 I've got third party C++ library in which some class methods use raw byte buffers. I'm not quite sure how to deal in Boost::Python with it. C++ library header is something like: class CSomeClass { public: int load( unsigned char *& pInBufferData, int & iInBufferSize ); int save( unsigned char *& pOutBufferData, int & iOutBufferSize ); } In stuck with the Boost::Python code... class_<CSomeClass>("CSomeClass", init<>()) .def("load", &CSomeClass::load, (args(/* what do I put here??? */))) .def(