lrinface.h
来自「这是LZ77压缩算法的源码」· C头文件 代码 · 共 43 行
H
43 行
#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 + =
减小字号Ctrl + -
显示快捷键?