Handles LZS compressed data streams.
More...
#include <VGearsLZSDataStream.h>
Handles LZS compressed data streams.
◆ LZSDataStream() [1/2]
VGears::LZSDataStream::LZSDataStream |
( |
const Ogre::DataStreamPtr & |
compressed_stream | ) |
|
Constructor.
- Parameters
-
[in] | compressed_stream | The compressed stream. |
◆ LZSDataStream() [2/2]
VGears::LZSDataStream::LZSDataStream |
( |
const String & |
name, |
|
|
const Ogre::DataStreamPtr & |
compressed_stream |
|
) |
| |
Constructor.
- Parameters
-
[in] | name | NAme for th stream. |
[in] | compressed_stream | The compressed stream. |
◆ ~LZSDataStream()
VGears::LZSDataStream::~LZSDataStream |
( |
| ) |
|
|
virtual |
◆ AvailableCompressed()
size_t VGears::LZSDataStream::AvailableCompressed |
( |
| ) |
const |
|
inline |
Checks how many data still remains compresses.
- Returns
- The number of compressed bytes.
◆ AvailableUncompressed()
size_t VGears::LZSDataStream::AvailableUncompressed |
( |
| ) |
const |
|
inline |
Checks how many data still has been uncompressesed.
- Returns
- The number of uncompressed bytes.
◆ close()
void VGears::LZSDataStream::close |
( |
| ) |
|
|
overridevirtual |
◆ DecompressChunk()
void VGears::LZSDataStream::DecompressChunk |
( |
| ) |
|
|
protectedvirtual |
Decompresses the stream.
- Todo:
- The whole stream?
◆ eof()
bool VGears::LZSDataStream::eof |
( |
| ) |
const |
|
overridevirtual |
Indicates if the stream has reached the end.
- Returns
- True if the stream is ended, false otherwise.
◆ FlipEndian()
void VGears::LZSDataStream::FlipEndian |
( |
uint32 & |
inout_data | ) |
|
Flips the endian mode of some data.
Little endian data will be transformed into big endian, and big endian data will be transformed into little endian.
- Parameters
-
[in,out] | inout_data | The data to flip. |
◆ init()
void VGears::LZSDataStream::init |
( |
| ) |
|
|
protectedvirtual |
Initializes the stream and sets instance data.
◆ read()
size_t VGears::LZSDataStream::read |
( |
void * |
buf, |
|
|
size_t |
count |
|
) |
| |
|
overridevirtual |
Reads from the current position of stream into a buffer.
It also advances the stream cursor.
- Parameters
-
[out] | buf | Buffer to read to. |
[in] | count | Number of data to read. If the end of the stream is reached before reading this much, it will stop reading. |
◆ seek()
void VGears::LZSDataStream::seek |
( |
size_t |
pos | ) |
|
|
overridevirtual |
Unimplemented.
Not required.
- Parameters
-
◆ skip()
void VGears::LZSDataStream::skip |
( |
long |
count | ) |
|
|
overridevirtual |
Unimplemented.
Not required, can use read instead.
- Parameters
-
◆ tell()
size_t VGears::LZSDataStream::tell |
( |
| ) |
const |
|
overridevirtual |
Retrieves the current stream position.
- Returns
- The current stream position.
◆ available_compressed_
uint32 VGears::LZSDataStream::available_compressed_ |
|
protected |
◆ buffer_
◆ compressed_stream_
Ogre::DataStreamPtr VGears::LZSDataStream::compressed_stream_ |
|
protected |
◆ position_
size_t VGears::LZSDataStream::position_ |
|
protected |
The documentation for this class was generated from the following files: