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

📄 lrinface.h

📁 这是LZ77压缩算法的源码
💻 H
字号:
#ifndef _LR_INFACE_H
#define _LR_INFACE_H

#include "zlib.h"

/*************************************************************************************************************************************************
Name			:LRcompress
Description		:is used to compress data
Paramenters		:IN
					Byte *uncompr:the data of need be compressed
					uLong uncomprLen: the length of uncompr;
				 OUT
					Byte *compr:the data of compress
					uLong *comprLen:the length of  compr
Return Value	:int 
					Z_OK:success
					Z_MEM_ERROR:there was not enough memory
					Z_BUF_ERROR:there was not enough room in the output buffer
					Z_STREAM_ERROR:the level parameter is invalid
NOTES			:
*************************************************************************************************************************************************/
extern int LRcompress(Byte *uncompr, uLong uncomprLen, Byte *compr, uLong *comprLen);


/*************************************************************************************************************************************************
Name			:LRuncompress
Description		:is used to decompress data
Paramenters		:IN
					Byte *compr:the data of need be decompressed
					uLong comprLen: the length of  compr;
				 OUT
					Byte *uncompr:the data of decompression
					uLong *uncomprLen:the length of uncompr
Return Value	:int 
					Z_OK:success
					Z_MEM_ERROR:there was not enough memory
					Z_BUF_ERROR:there was not enough room in the output buffer
					Z_STREAM_ERROR:the level parameter is invalid
NOTES			:
*************************************************************************************************************************************************/
extern int LRuncompress(Byte *compr, uLong comprLen, Byte *uncompr, uLong *uncomprLen);  

#endif

⌨️ 快捷键说明

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