Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
Gray::cMemPage Class Reference

#include <cMemPage.h>

Inheritance diagram for Gray::cMemPage:
Gray::cRefBase IUnknown

Public Member Functions

 cMemPage (UINT_PTR nPageStart, size_t nPageSize)
 
virtual ~cMemPage () noexcept
 
UINT_PTR get_SortValue () const noexcept
 
bool IsOverlapped (UINT_PTR p, size_t n) const noexcept
 
bool SetProtect (bool bProtect) noexcept
 
- Public Member Functions inherited from Gray::cRefBase
 cRefBase (int iRefCount=0) noexcept
 
virtual ~cRefBase ()
 
int get_RefCount () const noexcept
 
HASHCODE_t get_HashCode () const noexcept
 
 STDMETHOD_ (HASHCODE_t, get_HashCodeX)() const noexcept
 
virtual void onFinalRelease ()
 
bool isValidObj () const noexcept
 
 STDMETHOD_ (ULONG, AddRef)(void) override
 
 STDMETHOD_ (ULONG, Release)(void) override
 
STDMETHOD() QueryInterface (const IID &riid, void __RPC_FAR *__RPC_FAR *ppvObject) override
 
void IncRefCount ()
 
void DecRefCount ()
 
bool isStaticConstruct () const noexcept
 
void StaticConstruct ()
 
void StaticDestruct ()
 
bool isDestructing () noexcept
 
void SetDestructing ()
 

Public Attributes

UINT_PTR m_nPageStart
 Always aligned to dwPageSize. More...
 
size_t m_nPageSize
 SystemInfo::dwPageSize. More...
 
DWORD m_dwOldProtectionFlags
 original flags used/returned by _WIN32 VirtualProtect() More...
 
int m_nRefCount2
 ProtectPages count. More...
 

Friends

class cMemPageMgr
 

Constructor & Destructor Documentation

◆ cMemPage()

Gray::cMemPage::cMemPage ( UINT_PTR  nPageStart,
size_t  nPageSize 
)
inline

◆ ~cMemPage()

virtual Gray::cMemPage::~cMemPage ( )
inlinevirtualnoexcept

Member Function Documentation

◆ get_SortValue()

UINT_PTR Gray::cMemPage::get_SortValue ( ) const
inlinenoexcept

◆ IsOverlapped()

bool Gray::cMemPage::IsOverlapped ( UINT_PTR  p,
size_t  n 
) const
inlinenoexcept

◆ SetProtect()

bool Gray::cMemPage::SetProtect ( bool  bProtect)
inlinenoexcept
  • bProtect = false = allow PAGE_EXECUTE_READWRITE

Friends And Related Function Documentation

◆ cMemPageMgr

friend class cMemPageMgr
friend

Member Data Documentation

◆ m_dwOldProtectionFlags

DWORD Gray::cMemPage::m_dwOldProtectionFlags

original flags used/returned by _WIN32 VirtualProtect()

◆ m_nPageSize

size_t Gray::cMemPage::m_nPageSize

SystemInfo::dwPageSize.

◆ m_nPageStart

UINT_PTR Gray::cMemPage::m_nPageStart

Always aligned to dwPageSize.

◆ m_nRefCount2

int Gray::cMemPage::m_nRefCount2

ProtectPages count.


The documentation for this class was generated from the following file: