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

📄 compress.h

📁 PDA上的CF CARD 文件系统的建立程式
💻 H
字号:
/**************************************************************
;*                                                            *
;*	      INSTUTITE FOR INFORMATION INDUSTRY              *
;*             COMPRESSION HEADER -- RAMDISK 3.5	      *
;*		       November 04, 1999                      *
;*                                                            *
;*************************************************************/
#ifndef _COMPRESS_H
#define _COMPRESS_H


/*************************************************************
Function: rd_compress
Description:
	compress the buffer
Input:
	buffer - the data to be compressed
	size - the size of data to be compressed
Output:
	buffer - the compressed data
Return value:
	the compressed data size
	-1 if failed
Note:
	Note that the original buffer contents are destroyed
	after compression. Remember to set the buffer
	information in the file handle to empty.
**************************************************************/
//long rd_compress_none(unsigned char *buffer, long size);
long rd_compress_zlib(unsigned char *buffer, long size);



/*************************************************************
Function: rd_uncompress
Description:
	decompress a block to buffer
Input:
	buffer - the data to be decompressed
	size - the size of data to be decompressed
Output:
	NONE
Return value:
	the uncompressed data size
	-1 if failed
**************************************************************/
//long rd_uncompress_none(struct diskBlock *block, unsigned char *buffer);
long rd_uncompress_zlib(struct diskBlock *block, unsigned char *buffer);


#endif

⌨️ 快捷键说明

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