2007-12-17 04:08:46 +00:00
|
|
|
#include "MemoryStateFile.h"
|
|
|
|
|
2013-04-25 05:51:31 +00:00
|
|
|
CMemoryStateFile::CMemoryStateFile(const char* name, const void* memory, size_t size)
|
|
|
|
: CZipFile(name)
|
|
|
|
, m_memory(memory)
|
|
|
|
, m_size(size)
|
2007-12-17 04:08:46 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
CMemoryStateFile::~CMemoryStateFile()
|
|
|
|
{
|
2013-04-25 05:51:31 +00:00
|
|
|
|
2007-12-17 04:08:46 +00:00
|
|
|
}
|
|
|
|
|
2013-04-25 05:51:31 +00:00
|
|
|
void CMemoryStateFile::Write(Framework::CStream& stream)
|
2007-12-17 04:08:46 +00:00
|
|
|
{
|
2013-04-25 05:51:31 +00:00
|
|
|
stream.Write(m_memory, m_size);
|
2007-12-17 04:08:46 +00:00
|
|
|
}
|