Chris@4: Possible upgrades to gzfilebuf: Chris@4: Chris@4: - The ability to do putback (e.g. putbackfail) Chris@4: Chris@4: - The ability to seek (zlib supports this, but could be slow/tricky) Chris@4: Chris@4: - Simultaneous read/write access (does it make sense?) Chris@4: Chris@4: - Support for ios_base::ate open mode Chris@4: Chris@4: - Locale support? Chris@4: Chris@4: - Check public interface to see which calls give problems Chris@4: (due to dependence on library internals) Chris@4: Chris@4: - Override operator<<(ostream&, gzfilebuf*) to allow direct copying Chris@4: of stream buffer to stream ( i.e. os << is.rdbuf(); )