Hi, I found some old emails about a pass through stream buffer, but I can't find it in the boost library. Am I going blind? Basically I'm in the middle of writing a gzstream class that compresses and decompresses data to and from a iostream and I thought this pass through buffer would be exactly what I need. Anyone know where it is or have any other pointers for me? Thanks in advance. Cheers, Tom Howard
I think you just want to do this: static void pass_through(std::iostream & stream) { std::istream_iterator<char> in(stream), end; std::ostream_iterator<char> out(stream); std::copy(in, end, out); } Which will just copy everything from the in steam to the out stream until it hits an eof. hth sam
-----Original Message----- From: Tom Howard [mailto:tomhoward@users.sourceforge.net] Sent: 24 July 2002 16:49 To: Boost-Users@yahoogroups.com Subject: [Boost-Users] pass through buffer
Hi,
I found some old emails about a pass through stream buffer, but I can't find it in the boost library. Am I going blind?
Basically I'm in the middle of writing a gzstream class that compresses and decompresses data to and from a iostream and I thought this pass through buffer would be exactly what I need. Anyone know where it is or have any other pointers for me?
Thanks in advance.
Cheers,
Tom Howard
Info: http://www.boost.org Wiki: http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl Unsubscribe: mailto:boost-users-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Ah, I just re-read what you said and I now see that I was talking out of my rear end, sorry. sam
-----Original Message----- From: Sam Partington [mailto:sam.partington@codescape.com] Sent: 24 July 2002 16:29 To: Boost-Users@yahoogroups.com Subject: RE: [Boost-Users] pass through buffer
I think you just want to do this:
static void pass_through(std::iostream & stream) { std::istream_iterator<char> in(stream), end; std::ostream_iterator<char> out(stream); std::copy(in, end, out); }
Which will just copy everything from the in steam to the out stream until it hits an eof.
hth
sam
-----Original Message----- From: Tom Howard [mailto:tomhoward@users.sourceforge.net] Sent: 24 July 2002 16:49 To: Boost-Users@yahoogroups.com Subject: [Boost-Users] pass through buffer
Hi,
I found some old emails about a pass through stream buffer, but I can't find it in the boost library. Am I going blind?
Basically I'm in the middle of writing a gzstream class that compresses and decompresses data to and from a iostream and I thought this pass through buffer would be exactly what I need. Anyone know where it is or have any other pointers for me?
Thanks in advance.
Cheers,
Tom Howard
Info: http://www.boost.org Wiki: http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl Unsubscribe: mailto:boost-users-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Info: http://www.boost.org Wiki: http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl Unsubscribe: mailto:boost-users-unsubscribe@yahoogroups.com Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
I found some old emails about a pass through stream buffer, but I can't find it in the boost library. Am I going blind?
No. It is in the more_io.zip file in http://groups.yahoo.com/group/boost/files/2001/
Basically I'm in the middle of writing a gzstream class that compresses and decompresses data to and from a iostream and I thought this pass through buffer would be exactly what I need. Anyone know where it is or have any other pointers for me?
Have a look at my zstream library in the files section. It uses the C zlib library to implement compressing stream classes ifzstream and ofzstream. http://groups.yahoo.com/group/boost/files/compressed_streams/ Jeff
--- In Boost-Users@y..., "Jeff Garland"
I found some old emails about a pass through stream buffer, but I can't find it in the boost library. Am I going blind?
No. It is in the more_io.zip file in
Basically I'm in the middle of writing a gzstream class that compresses and decompresses data to and from a iostream and I thought this pass
buffer would be exactly what I need. Anyone know where it is or have any other pointers for me?
Have a look at my zstream library in the files section. It uses
Thanks, I'll check it out. through the C zlib library to implement compressing stream classes
ifzstream and ofzstream.
http://groups.yahoo.com/group/boost/files/compressed_streams/
I've already got something similar (gzfstream), but now I'm writing a gzstream for a customer socket stream I've written. I'll look at it anyway. Thanks heaps. Cheers, Tom
participants (4)
-
bjandtomau
-
Jeff Garland
-
Sam Partington
-
Tom Howard