~ubuntu-branches/ubuntu/precise/p7zip/precise-updates

« back to all changes in this revision

Viewing changes to CPP/7zip/Compress/Z/ZDecoder.h

  • Committer: Bazaar Package Importer
  • Author(s): Mohammed Adnène Trojette
  • Date: 2009-02-14 20:12:27 UTC
  • mfrom: (1.1.11 upstream) (2.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090214201227-go63qxm9ozfdma60
Tags: 4.65~dfsg.1-1
* New upstream release.
* Remove wx2.8 Build-Depends added by mistakes (7zG is not yet
  intended to be built).
* Use dh_clean without -k.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// ZDecoder.h
2
 
 
3
 
#ifndef __COMPRESS_ZDECODER_H
4
 
#define __COMPRESS_ZDECODER_H
5
 
 
6
 
#include "../../../Common/MyCom.h"
7
 
#include "../../ICoder.h"
8
 
 
9
 
namespace NCompress {
10
 
namespace NZ {
11
 
 
12
 
class CDecoder :
13
 
  public ICompressCoder,
14
 
  public ICompressSetDecoderProperties2,
15
 
  public CMyUnknownImp
16
 
{
17
 
  BYTE _properties;
18
 
  int _numMaxBits;
19
 
  UInt16 *_parents;
20
 
  Byte *_suffixes;
21
 
  Byte *_stack;
22
 
 
23
 
public:
24
 
  CDecoder(): _properties(0), _numMaxBits(0), _parents(0), _suffixes(0), _stack(0) {};
25
 
  ~CDecoder();
26
 
  void Free();
27
 
  bool Alloc(size_t numItems);
28
 
 
29
 
  MY_UNKNOWN_IMP1(ICompressSetDecoderProperties2)
30
 
 
31
 
  STDMETHOD(CodeReal)(ISequentialInStream *inStream,
32
 
      ISequentialOutStream *outStream, const UInt64 *inSize, const UInt64 *outSize,
33
 
      ICompressProgressInfo *progress);
34
 
 
35
 
  STDMETHOD(Code)(ISequentialInStream *inStream,
36
 
      ISequentialOutStream *outStream, const UInt64 *inSize, const UInt64 *outSize,
37
 
      ICompressProgressInfo *progress);
38
 
 
39
 
  STDMETHOD(SetDecoderProperties2)(const Byte *data, UInt32 size);
40
 
};
41
 
 
42
 
}}
43
 
 
44
 
#endif