Regina Calculation Engine
|
An input stream that decompresses data as it is read. More...
#include <utilities/zstream.h>
Public Member Functions | |
DecompressionStream () | |
Creates a new decompression stream. More... | |
DecompressionStream (const char *path) | |
Creates a new decompression stream that reads from the given file. More... | |
int | open (const char *path) |
Opens the given file for decompressed reading. More... | |
int | close () |
Closes the underlying file. More... | |
An input stream that decompresses data as it is read.
The standard zlib compression library is used.
This stream does its work through a DecompressionBuffer.
|
inline |
Creates a new decompression stream.
|
inline |
Creates a new decompression stream that reads from the given file.
The underlying file will be opened automatically.
path | the pathname of the new file to open. |
|
inline |
Closes the underlying file.
If no file is open, this routine does nothing.
|
inline |
Opens the given file for decompressed reading.
If a file is already open, it will be closed before the new file is opened.
path | the pathname of the new file to open. |