mirror of
https://github.com/reactos/reactos.git
synced 2024-08-17 08:58:30 +00:00
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 */
|