mirror of
https://github.com/reactos/reactos.git
synced 2024-10-31 20:02:55 +00:00
7394d12f7e
CORE-17231
41 lines
994 B
C++
41 lines
994 B
C++
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS cabinet manager
|
|
* FILE: tools/cabman/mszip.h
|
|
* PURPOSE: CAB codec for MSZIP compressed data
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "cabinet.h"
|
|
#include <zlib.h>
|
|
|
|
#define MSZIP_MAGIC 0x4B43
|
|
|
|
|
|
/* Classes */
|
|
|
|
class CMSZipCodec : public CCABCodec
|
|
{
|
|
public:
|
|
/* Default constructor */
|
|
CMSZipCodec();
|
|
/* Default destructor */
|
|
virtual ~CMSZipCodec();
|
|
/* Compresses a data block */
|
|
virtual ULONG Compress(void* OutputBuffer,
|
|
void* InputBuffer,
|
|
ULONG InputLength,
|
|
PULONG OutputLength) override;
|
|
/* Uncompresses a data block */
|
|
virtual ULONG Uncompress(void* OutputBuffer,
|
|
void* InputBuffer,
|
|
ULONG InputLength,
|
|
PULONG OutputLength) override;
|
|
private:
|
|
int Status;
|
|
z_stream ZStream; /* Zlib stream */
|
|
};
|
|
|
|
/* EOF */
|