rmbufferpool.h

来自「神龙卡开发原代码」· C头文件 代码 · 共 56 行

H
56
字号
/******************************************************************** Copyright (c) 2001 Sigma Designs Inc. All rights reserved. ********************************************************************//**  @file   rmbufferpool.h  @brief    RMbufferPool is a factory which can return a finite  number of constructed RMbuffers.  @author Mathieu Lacage  @date   2001-09-24*/#ifndef __RMBUFFERPOOL_H__#define __RMBUFFERPOOL_H__class RM_LIBRARY_IMPORT_EXPORT RMbufferPool: public RMobject{ public:		RMbufferPool(RMascii *name);	virtual ~RMbufferPool(void);	/**	   GetObject:	   Used by clients to get a pointer to a buffer 	   of bytes of size objectSize.	   This removes the object from the bufferPool.	 */	virtual RMbuffer *GetRMbuffer (void) PURE_VIRTUAL;        /**           Gets the number of available RMbuffer for next           GetRMbufferCall. May be useful to implement a non blocking           GetRMbuffer call.	              @param void             @return <ReturnValue>	*/	virtual RMuint32 GetFreeRMbufferCount (void) PURE_VIRTUAL;        /**           Gets the maximum amout of buffer in the pool	              @param void             @return <ReturnValue>	*/	virtual RMuint32 GetMaxRMbuffer (void) PURE_VIRTUAL;	virtual RMbuffer *ShowBufferContainingAddress(RMuint8 *address) PURE_VIRTUAL;};#endif // __RMBUFFERPOOL_H__

⌨️ 快捷键说明

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