#include <zstream.h>
Public Member Functions | |
CompressionStream () | |
Creates a new compression stream. | |
CompressionStream (const char *path) | |
Creates a new compression stream that writes to the given file. | |
int | open (const char *path) |
Opens the given file for compressed writing. | |
int | close () |
Closes the underlying file. |
The standard zlib compression library is used.
This stream does its work through a CompressionBuffer.
|
Creates a new compression stream.
|
|
Creates a new compression stream that writes to the given file. The underlying file will be opened automatically.
|
|
Closes the underlying file. If no file is open, this routine does nothing.
|
|
Opens the given file for compressed writing. If a file is already open, it will be closed before the new file is opened.
|