HDK
|
Interface for reading Seekable Compressed Format (SCF) files. More...
#include <UT_SCFReader.h>
Public Member Functions | |
UT_SCFReader () | |
~UT_SCFReader () | |
UT_IStream * | getInputStream (const char *filename) |
UT_IStream * | getInputStream (UT_IStream *stream) |
UT_IStream * | getFilteredInputStream () const |
void | stealStreams (UT_UniquePtr< UT_IStream > &filter, UT_UniquePtr< UT_IStream > &substream) |
void | close () |
When you open a blosc stream, there are two. More... | |
Interface for reading Seekable Compressed Format (SCF) files.
Definition at line 21 of file UT_SCFReader.h.
UT_SCFReader::UT_SCFReader | ( | ) |
UT_SCFReader::~UT_SCFReader | ( | ) |
void UT_SCFReader::close | ( | ) |
When you open a blosc stream, there are two.
Closes the reader.
|
inline |
Provided the SCFReader has already been opened with getInputStream, this allows you to regain the filtered stream that it owns.
Definition at line 49 of file UT_SCFReader.h.
UT_IStream* UT_SCFReader::getInputStream | ( | const char * | filename | ) |
Retrieves a stream that the uncompressed data can be read from. it has been given the index if available and is fully seekable.
filename | The name of the file to open |
UT_IStream* UT_SCFReader::getInputStream | ( | UT_IStream * | stream | ) |
Retrieves a stream that the uncompressed data can be read from. it has been given the index if available and is fully seekable.
stream | The stream to be used as raw input |
The input stream needs to exist for the lifetime of the blosc stream returned. The UT_SCFReader doesn't take ownership of the input stream passed in.
The UT_SCFReader does maintain ownership of the stream returned. You should not clear this stream unless you steal ownership of the streams (see stealStreams()).
void UT_SCFReader::stealStreams | ( | UT_UniquePtr< UT_IStream > & | filter, |
UT_UniquePtr< UT_IStream > & | substream | ||
) |
The UT_SCFReader typically takes ownership of two streams
It's possible the stream pointers may be NULL pointers if there have been errors, or they have been stolen already.