[C++-sig] Re: How to access boost::python::str buffer
David Abrahams
dave at boost-consulting.com
Tue Dec 16 01:21:59 CET 2003
Nicolas Fleury <nidoizo at yahoo.com> writes:
> Hi,
> I have a binary buffer stored in a boost::python::str. How do I
> access the buffer to store it in a void*? (I guess I get the size
> with .attr("__len__")() )
>
> Thx and Regards,
static_cast<void*>(
const_cast<void const*>(
extract<char const*>(x)()
)
)
HTH,
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list