[C++-sig] Re: passing buffer of bytes from Python to C++

Dan Halbert halbert at bbn.com
Thu Mar 11 15:58:29 CET 2004

  >From: David Abrahams <dave at boost-consulting.com>
  >Dan Halbert <halbert at bbn.com> writes:
  >> One of the C++ methods I've wrapped with BPL has a signature something like
  >>     process_data(unsigned char const* buffer, unsigned long buffer_length)
  >Python strings will be automatically converted to char const*

Thanks, David. Just to provide closure here, the problem I had was the
"unsigned char", which is not converted automatically, though "char" is.
I have wrapped the method to avoid this.


More information about the Cplusplus-sig mailing list