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

📄 pool.h

📁 C++语言开发的受机短信相关的源程序
💻 H
字号:
// Pool.h: interface for the CPool class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_POOL_H__966EC0B8_5F11_11D2_A6F4_00A0C98659CB__INCLUDED_)
#define AFX_POOL_H__966EC0B8_5F11_11D2_A6F4_00A0C98659CB__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define DEFULT_POOL_SIZE	 0xa000

class CPool  
{
public:
	CPool(int size=DEFULT_POOL_SIZE);
	~CPool();
	int GetFreeSize();
	int GetDataSize();
	LPVOID GetData(int &size);
	BOOL OutPool(int size);
	BOOL PutPool(LPVOID pBuff,int size);
	void ClearBuffer();
protected:
	char* m_pBuff;
	int m_BuffSize;
	int m_DataSize;
};

#endif // !defined(AFX_POOL_H__966EC0B8_5F11_11D2_A6F4_00A0C98659CB__INCLUDED_)

⌨️ 快捷键说明

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