ScummVM API documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
lzss.h
1
/* ScummVM - Graphic Adventure Engine
2
*
3
* ScummVM is the legal property of its developers, whose names
4
* are too numerous to list here. Please refer to the COPYRIGHT
5
* file distributed with this source distribution.
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*
20
* $URL: https://scummvm-startrek.googlecode.com/svn/trunk/lzss.h $
21
* $Id: lzss.h 2 2009-09-12 20:13:40Z clone2727 $
22
*
23
*/
24
25
#include "common/stream.h"
26
27
namespace
StarTrek
{
28
29
Common::SeekableReadStream
*decodeLZSS(
Common::SeekableReadStream
*indata, uint32 uncompressedSize);
30
31
/*
32
class LzssReadStream : public Common::SeekableReadStream {
33
private:
34
uint8 *_outLzssBufData;
35
uint32 _size;
36
uint32 _pos;
37
38
uint32 decodeLZSS(Common::ReadStream *in, uint8 lengthmask, uint8 lengthbits);
39
40
public:
41
LzssReadStream(Common::ReadStream *indata, uint8 lengthmask, uint8 lengthbits);
42
~LzssReadStream();
43
44
bool eos() const;
45
uint32 read(void *buf, uint32 length);
46
int32 pos() const { return _pos; }
47
int32 size() const { return _size; }
48
bool seek(int32 offset, int whence) {
49
// TODO
50
return false;
51
}
52
53
};
54
*/
55
56
}
// End of namespace StarTrek
Common::SeekableReadStream
Definition:
stream.h:745
StarTrek
Definition:
action.h:27
engines
startrek
lzss.h
Generated on Thu Apr 10 2025 09:12:24 for ScummVM API documentation by
1.8.13