📄 rmstdbufferpool.h
字号:
/******************************************************************** 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -