SourcePro® C++ 13.1 |
SourcePro® C++ API Reference Guide |
Product Documentation: SourcePro C++ Documentation Home |
Deserializes and decompresses data from an associated std::streambuf. More...
#include <rw/tools/cmpstream.h>
Public Member Functions | |
RWCompressedIStream (std::streambuf *stream_buffer, std::ios_base::openmode mode=std::ios_base::in, rwuint32 block_size=2048U, const Compressor &compressor=Compressor()) | |
RWCompressedIStream (std::istream &stream, std::ios_base::openmode mode=std::ios_base::in, rwuint32 block_size=2048U, const Compressor &compressor=Compressor()) | |
void | close () |
const Compressor & | get_compressor () const |
bool | is_open () const |
void | open (std::streambuf *stream_buffer, std::ios_base::openmode mode=std::ios_base::in, rwuint32 block_size=2048U) |
RWCompressedStreamBuffer < Compressor > * | rdbuf () const |
Class RWCompressedIStream deserializes and decompresses data from an associated std::streambuf. The data on that streambuf must have been serialized with its counterpart RWCompressedOStream.
None
Program output:
|
inline |
Constructor initializes and opens the underlying stream buffer with the provided stream_buffer, mode, block_size, and compressor. If the open fails, failbit is set on this stream.
|
inline |
Constructor initializes and opens the underlying stream buffer with the provided mode, block_size, compressor, and the stream buffer associated with stream. If the open fails, failbit is set on this stream.
|
inline |
Closes the underlying stream buffer. If the close fails, failbit is set on this stream. After this method has been called, this stream cannot be used for input until a successful call to open() has been made.
|
inline |
Returns a reference to the underlying stream buffer's compressor.
|
inline |
Returns true
if the underlying stream buffer is open and is ready for use, otherwise returns false
.
|
inline |
Opens the underlying stream buffer with the provided stream_buffer, mode, and block_size. If the open fails, failbit is set on this stream.
|
inline |
Returns a pointer to the underlying stream buffer.
Copyright © 2015 Rogue Wave Software, Inc. All Rights Reserved. |