xoreos  0.0.5
Static Public Member Functions | List of all members
Aurora::Small Class Reference

#include <smallfile.h>

Static Public Member Functions

static void decompress (Common::ReadStream &small, Common::WriteStream &out)
 
static Common::SeekableReadStreamdecompress (Common::ReadStream &small)
 Decompress this stream into a new SeekableReadStream. More...
 
static Common::SeekableReadStreamdecompress (Common::ReadStream *small)
 Take over this stream and decompress it into a new SeekableReadStream. More...
 
static Common::SeekableReadStreamdecompress (Common::SeekableReadStream *small)
 Take over this stream and decompress it into a new SeekableReadStream. More...
 
static void compress00 (Common::SeekableReadStream &in, Common::WriteStream &small)
 "Compress" this stream into an uncompressed small file. More...
 
static void compress10 (Common::SeekableReadStream &in, Common::WriteStream &small)
 Compress this stream into a small file of type 0x10. More...
 

Detailed Description

Definition at line 36 of file smallfile.h.

Member Function Documentation

◆ compress00()

void Aurora::Small::compress00 ( Common::SeekableReadStream in,
Common::WriteStream small 
)
static

"Compress" this stream into an uncompressed small file.

This is basically just the input stream with a 4 byte header prepended.

Definition at line 319 of file smallfile.cpp.

References Aurora::compress00(), Common::SeekableReadStream::pos(), Common::SeekableReadStream::size(), and Aurora::writeSmallHeader().

Here is the call graph for this function:

◆ compress10()

void Aurora::Small::compress10 ( Common::SeekableReadStream in,
Common::WriteStream small 
)
static

Compress this stream into a small file of type 0x10.

Note that, depending on the input data, the result may be bigger that the input stream.

Definition at line 328 of file smallfile.cpp.

References Aurora::compress10(), Common::SeekableReadStream::pos(), Common::SeekableReadStream::size(), and Aurora::writeSmallHeader().

Here is the call graph for this function:

◆ decompress() [1/4]

void Aurora::Small::decompress ( Common::ReadStream small,
Common::WriteStream out 
)
static

Definition at line 255 of file smallfile.cpp.

References Common::StackException::add(), Aurora::decompress(), and Aurora::readSmallHeader().

Referenced by decompress(), Aurora::ResourceManager::getResource(), Aurora::readCells(), and Graphics::CBGT::readCells().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decompress() [2/4]

Common::SeekableReadStream * Aurora::Small::decompress ( Common::ReadStream small)
static

Decompress this stream into a new SeekableReadStream.

Definition at line 295 of file smallfile.cpp.

References Common::StackException::add(), Aurora::decompress(), Common::MemoryWriteStreamDynamic::getData(), Aurora::readSmallHeader(), Common::MemoryWriteStreamDynamic::setDisposable(), and Common::MemoryWriteStreamDynamic::size().

Here is the call graph for this function:

◆ decompress() [3/4]

Common::SeekableReadStream * Aurora::Small::decompress ( Common::ReadStream small)
static

Take over this stream and decompress it into a new SeekableReadStream.

Definition at line 312 of file smallfile.cpp.

References decompress().

Here is the call graph for this function:

◆ decompress() [4/4]

Common::SeekableReadStream * Aurora::Small::decompress ( Common::SeekableReadStream small)
static

Take over this stream and decompress it into a new SeekableReadStream.

If the Small files is uncompressed, this new stream will be a SeekableSubReadStream simply wrapping the old stream.

Definition at line 268 of file smallfile.cpp.

References Common::StackException::add(), Aurora::decompress(), Aurora::readSmallHeader(), and Common::ScopedPtrBase< T, Deallocator >::release().

Here is the call graph for this function:

The documentation for this class was generated from the following files: