KMemClass.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:1k
- //---------------------------------------------------------------------------
- // Sword3 Engine (c) 1999-2000 by Kingsoft
- //
- // File: KMemClass.h
- // Date: 2000.08.08
- // Code: WangWei(Daphnis)
- // Desc: Header File
- //---------------------------------------------------------------------------
- #ifndef KMemClass_H
- #define KMemClass_H
- //---------------------------------------------------------------------------
- class ENGINE_API KMemClass
- {
- private:
- PVOID m_lpMemPtr;
- DWORD m_lpMemLen;
- public:
- KMemClass();
- ~KMemClass();
- PVOID Alloc(DWORD dwSize);
- void Free();
- void Zero();
- void Fill(BYTE byFill);
- void Fill(WORD wFill);
- void Fill(DWORD dwFill);
- PVOID GetMemPtr() { return m_lpMemPtr; };
- DWORD GetMemLen() { return m_lpMemLen; };
- };
- //---------------------------------------------------------------------------
- #endif