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

📄 zlibbrew.h

📁 liu7788414
💻 H
字号:
/*
* ============================================================================
*  Name     : ZLibBrew
*  Part of  : Game
*  Created  : 2003-09-03 by Zheng Jie Sheng
*  Implementation notes:
*    To decompress from zlib compressed package. Using old packing tool. 
*  Version  :
*  Copyright: Gameloft S.A.
*
* ============================================================================
*/

#ifndef __ZLIBBREW_H__
#define __ZLIBBREW_H__

//##ModelId=402850A4021F
class CZLibBrew
{
public:
	//##ModelId=402850A40232
	char*	pZlibBuffer;	// temporary buffer for zlib functions, init by zlib utility function initZlibTempBuff
	//##ModelId=402850A40231
	int		nZlibTotalSize;	// total size of zlib temp buffer
	//##ModelId=402850A40230
	int		nZlibAllocSize;	// allocated buffer size consumed by zlib functions

	//##ModelId=402850A4022F
	char*	pZlibBuff2;		// temporary buffer 2 for zlib functions, init by zlib utility function initZlibTemp
	//##ModelId=402850A40222
	int		nZlibTotalSize2;// total size of zlib temp buffer 2
	//##ModelId=402850A40221
	int		nZlibAllocSize2;// allocated buffer size 2 consumed by zlib functions
	//##ModelId=402850A40220
	int		bNotInitZero;

	//##ModelId=402850A40241
	CZLibBrew();
	//##ModelId=402850A4023C
	void	initZlibTempBuff( void* buff, int size, void* buf2, int size2 ) ;
	//##ModelId=402850A4023B
	void	freeZlibTempBuff( ) ;
	//##ModelId=402850A40238
	void	* brewCalloc(  unsigned items, unsigned size ) ;
	//##ModelId=402850A40235
	void	* zcalloc( unsigned items, unsigned size ) ;
	//##ModelId=402850A40233
	void	zcfree( void* ptr );
};

//##ModelId=402850A50183
struct lzo
{
	//##ModelId=402850A50195
	int magic ;//0x0120; //doesn't it like lzo?
	//##ModelId=402850A50194
	int fileLen; //filelen 
	//##ModelId=402850A50193
	int uncompLen;
	//##ModelId=402850A50185
	int compLen;
	//##ModelId=402850A50184
	char comp[4];
};

#ifdef __cplusplus
extern "C" 
{
#endif
void* zcalloc( void* global, unsigned items, unsigned size ) ;
void zcfree( void* global, void* ptr );
#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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