#include <FS_ReaderStream.h>
|
| FS_ReaderStream () |
|
| FS_ReaderStream (FS_ReaderStream &src, int64 stream_offset, int64 stream_size, int64 data_size, const FS_IStreamFilterFactory *factory) |
|
| FS_ReaderStream (const UT_StringHolder &file, const UT_Options *options=nullptr) |
|
| FS_ReaderStream (const char *data, int len, time_t modtime, const UT_StringHolder &file=UT_StringHolder()) |
|
| FS_ReaderStream (UT_WorkBuffer &buffer, time_t modtime, const UT_StringHolder &file=UT_StringHolder()) |
|
virtual | ~FS_ReaderStream () |
|
virtual int64 | getMemoryUsage (bool inclusive) const |
| Get the amount of memory owned by this FS_ReaderStream. More...
|
|
UT_IStream * | getStream () const |
| Returns the actual input stream to read the data from. More...
|
|
bool | isGood () const |
|
const UT_StringHolder & | getFilename () const |
|
int64 | getLength () const |
|
void | setSubStreamReadFilterFactory (FS_IStreamFilterFactory *f) |
|
FS_IStreamFilterFactory * | getSubStreamReadFilterFactory () const |
|
void | setSubStreamWriteFilterFactory (FS_WriteFilterFactory *f) |
|
FS_WriteFilterFactory * | getSubStreamWriteFilterFactory () const |
|
|
void | setModTime (time_t modtime) |
|
time_t | getModTime () const |
|
FS_ReaderStream::FS_ReaderStream |
( |
| ) |
|
Creates a memory buffer reader stream. Note, the reader stream object keeps a shallow reference to the data, thus the buffer needs to stay valid for the duration of the reader life span. Otherwise, use the constructor that takes UT_WorkBuffer.
virtual FS_ReaderStream::~FS_ReaderStream |
( |
| ) |
|
|
virtual |
int64 FS_ReaderStream::getLength |
( |
| ) |
const |
|
inline |
Returns the size of the data (ie, after filtering the raw stream). If no filtering is performed, this is the same as raw stream size.
Definition at line 88 of file FS_ReaderStream.h.
virtual int64 FS_ReaderStream::getMemoryUsage |
( |
bool |
inclusive | ) |
const |
|
virtual |
time_t FS_ReaderStream::getModTime |
( |
| ) |
const |
|
inline |
Returns the actual input stream to read the data from.
Definition at line 81 of file FS_ReaderStream.h.
bool FS_ReaderStream::isGood |
( |
| ) |
const |
void FS_ReaderStream::setModTime |
( |
time_t |
modtime | ) |
|
|
inline |
Sets the factory that should be used for this stream's substreams (but not for the whole stream). It is a way to piggyback the filter info to potential substream readers.
int64 FS_ReaderStream::myDataSize |
|
protected |
time_t FS_ReaderStream::myModTime |
|
protected |
The documentation for this class was generated from the following file: