mirror of
https://github.com/jpd002/Play-.git
synced 2025-05-02 23:47:58 +03:00
18 lines
332 B
C++
18 lines
332 B
C++
#include "MemoryViewPtr.h"
|
|
|
|
CMemoryViewPtr::CMemoryViewPtr(HWND hParent, const RECT& rect)
|
|
: CMemoryView(hParent, rect)
|
|
{
|
|
m_pData = NULL;
|
|
}
|
|
|
|
void CMemoryViewPtr::SetData(void* pData, uint32 nSize)
|
|
{
|
|
m_pData = pData;
|
|
SetMemorySize(nSize);
|
|
}
|
|
|
|
uint8 CMemoryViewPtr::GetByte(uint32 nAddress)
|
|
{
|
|
return ((uint8*)m_pData)[nAddress];
|
|
}
|