xoreos
0.0.5
|
#include <smallfile.h>
Static Public Member Functions | |
static void | decompress (Common::ReadStream &small, Common::WriteStream &out) |
static Common::SeekableReadStream * | decompress (Common::ReadStream &small) |
Decompress this stream into a new SeekableReadStream. More... | |
static Common::SeekableReadStream * | decompress (Common::ReadStream *small) |
Take over this stream and decompress it into a new SeekableReadStream. More... | |
static Common::SeekableReadStream * | decompress (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... | |
Definition at line 36 of file smallfile.h.
|
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().
|
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().
|
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().
|
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().
|
static |
Take over this stream and decompress it into a new SeekableReadStream.
Definition at line 312 of file smallfile.cpp.
References decompress().
|
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().