Hi,
I've implemented something like this (attached to this email).
You'll probably have to do a bit of work to get it working with what
you want to do. The InputStream takes as input another ZeroCopyInput
Stream. Unfortunatly, the output stream hasn't been implemented this
way, instead it takes a filename of a file descriptor -- No reason
technically, just it was done the wrong way the first time, and I
haven't had the chance to do anything about it yet.
I've used the boost shared_ptr to store the underlying
ZeroCopyInputStreams. The typedefs are something like;
typedef boost::shared_ptr<ZeroCopyInputStream> ZeroCopyInputStreamPtr;
I've attached the .h/.cpp and the testcases I've written for the input
class. This will need to be linked with zlib.
If you spot any problems, I'd appreciate hearing about them. Thanks.
Mark