mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
40 lines
976 B
C++
40 lines
976 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);
|
|
/* Uncompresses a data block */
|
|
virtual ULONG Uncompress(void* OutputBuffer,
|
|
void* InputBuffer,
|
|
ULONG InputLength,
|
|
PULONG OutputLength);
|
|
private:
|
|
int Status;
|
|
z_stream ZStream; /* Zlib stream */
|
|
};
|
|
|
|
/* EOF */
|