ReactOS 0.4.15-dev-7788-g1ad9096
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
18class CMSZipCodec : public CCABCodec
19{
20public:
21 /* Default constructor */
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;
35private:
36 int Status;
37 z_stream ZStream; /* Zlib stream */
38};
39
40/* EOF */
virtual ULONG Uncompress(void *OutputBuffer, void *InputBuffer, ULONG InputLength, PULONG OutputLength) override
Definition: mszip.cxx:115
virtual ~CMSZipCodec()
Definition: mszip.cxx:47
CMSZipCodec()
Definition: mszip.cxx:36
int Status
Definition: mszip.h:36
virtual ULONG Compress(void *OutputBuffer, void *InputBuffer, ULONG InputLength, PULONG OutputLength) override
Definition: mszip.cxx:55
z_stream ZStream
Definition: mszip.h:37
uint32_t * PULONG
Definition: typedefs.h:59
uint32_t ULONG
Definition: typedefs.h:59
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR OutputBuffer
Definition: wdfiotarget.h:863
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR InputBuffer
Definition: wdfiotarget.h:953