rmstdbufferpool.h

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

H
58
字号
/******************************************************************** Copyright (c) 2001 Sigma Designs Inc. All rights reserved. ********************************************************************//**  @file   rmstdbufferpool.h  @brief    RMbufferPool is a factory which can return a finite  number of constructed RMbuffers.  @author Mathieu Lacage  @date   2001-09-24*/#ifndef __RMSTDBUFFERPOOL_H__#define __RMSTDBUFFERPOOL_H__class RM_LIBRARY_IMPORT_EXPORT RMstdBufferPool: public RMbufferPool{ public:		RMstdBufferPool(RMuint32 bufferNumber, RMuint32 bufferSize);	RMstdBufferPool(RMuint8 *area, RMuint32 areaSize, RMuint32 bufferSize);		virtual ~RMstdBufferPool(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);        /**           Gets the number of available RMbuffer for next           GetRMbufferCall. May be useful to implement a non blocking           GetRMbuffer call.	              @param void             @return <ReturnValue>	*/	RMuint32 GetFreeRMbufferCount (void);	RMuint32 GetMaxRMbuffer (void);	RMbuffer *ShowBufferContainingAddress(RMuint8 *address); private:	RMpool m_ppool;	RMuint32 m_bufferSize;	RMuint8 *m_area;	RMbool m_allocatedArea;};#endif // __RMSTDBUFFERPOOL_H__

⌨️ 快捷键说明

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