ReactOS  0.4.15-dev-1152-g6c94e4f
mszip.h
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS cabinet manager
4  * FILE: tools/cabman/mszip.h
5  * PURPOSE: CAB codec for MSZIP compressed data
6  */
7 
8 #pragma once
9 
10 #include "cabinet.h"
11 #include <zlib.h>
12 
13 #define MSZIP_MAGIC 0x4B43
14 
15 
16 /* Classes */
17 
18 class CMSZipCodec : public CCABCodec
19 {
20 public:
21  /* Default constructor */
22  CMSZipCodec();
23  /* Default destructor */
24  virtual ~CMSZipCodec();
25  /* Compresses a data block */
26  virtual ULONG Compress(void* OutputBuffer,
27  void* InputBuffer,
28  ULONG InputLength,
29  PULONG OutputLength) override;
30  /* Uncompresses a data block */
31  virtual ULONG Uncompress(void* OutputBuffer,
32  void* InputBuffer,
33  ULONG InputLength,
34  PULONG OutputLength) override;
35 private:
36  int Status;
37  z_stream ZStream; /* Zlib stream */
38 };
39 
40 /* EOF */
z_stream ZStream
Definition: mszip.h:37
int Status
Definition: mszip.h:36
CHAR InputBuffer[80]
Definition: conmgr.c:33
CMSZipCodec()
Definition: mszip.cxx:36
virtual ULONG Uncompress(void *OutputBuffer, void *InputBuffer, ULONG InputLength, PULONG OutputLength) override
Definition: mszip.cxx:115
virtual ~CMSZipCodec()
Definition: mszip.cxx:47
_In_ ULONG _In_opt_ WDFREQUEST _In_opt_ PVOID _In_ size_t _In_ PVOID OutputBuffer
Definition: cdrom.h:1437
unsigned int * PULONG
Definition: retypes.h:1
unsigned int ULONG
Definition: retypes.h:1
virtual ULONG Compress(void *OutputBuffer, void *InputBuffer, ULONG InputLength, PULONG OutputLength) override
Definition: mszip.cxx:55