[C++-sig] Making buffer objects using Boost
Itamar Shtull-Trauring
itamar at itamarst.org
Wed Jul 14 19:08:01 CEST 2004
Hi,
I'd like to create a Python type with Boost that acts like a buffer
object (http://www.python.org/doc/current/api/buffer-structs.html). The
reason I'm not just using strings or arrays is that I want to allow
custom deallocation strategies for the char* that is being wrapped (I'm
working on Twisted C++ integration - network protocols that will be
calling something like Transport::write(Deallocator d, char* buf, size_t
buflen).)
Does Boost have the hooks for this?
--
Itamar Shtull-Trauring http://itamarst.org
More information about the Cplusplus-sig
mailing list