⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zlib123.h

📁 使用VC++封装为动态库的zlib压缩解压算法,使用方便!
💻 H
字号:
//
//zlib123.h
//
#pragma once

#ifdef ZLIB123_EXPORTS
#define ZLIB123_CLASS __declspec(dllexport)
#else
#define ZLIB123_CLASS __declspec(dllimport)
#endif

#define Z_OK				 0
#define Z_STREAM_END		 1
#define Z_NEED_DICT			 2
#define Z_ERRNO				 (-1)
#define Z_STREAM_ERROR		 (-2)
#define Z_DATA_ERROR		 (-3)
#define Z_MEM_ERROR			 (-4)
#define Z_BUF_ERROR			 (-5)
#define Z_VERSION_ERROR		 (-6)

class ZLIB123_CLASS CZlib123
{
public:
	CZlib123();
	~CZlib123();

public:
	static int UnCompress( unsigned char *destBuff, unsigned long *destLen, 
		                   const unsigned char *sourceBuff, unsigned long  sourceLen );
	static int Compress( unsigned char *destBuff, unsigned long *destLen,
		                 const unsigned char *sourceBuff, unsigned long  sourceLen );
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -