mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 13:47:57 +03:00
33 lines
544 B
C++
33 lines
544 B
C++
#include "ElfFile.h"
|
|
|
|
using namespace Framework;
|
|
|
|
CElfFile::CElfFile(CStream& stream) :
|
|
CElfFileContainer(stream),
|
|
CELF(GetFileContent())
|
|
{
|
|
|
|
}
|
|
|
|
CElfFile::~CElfFile()
|
|
{
|
|
|
|
}
|
|
|
|
|
|
CElfFileContainer::CElfFileContainer(Framework::CStream& input)
|
|
{
|
|
uint32 size = static_cast<uint32>(input.GetLength());
|
|
m_content = new uint8[size];
|
|
input.Read(m_content, size);
|
|
}
|
|
|
|
CElfFileContainer::~CElfFileContainer()
|
|
{
|
|
delete [] m_content;
|
|
}
|
|
|
|
uint8* CElfFileContainer::GetFileContent() const
|
|
{
|
|
return m_content;
|
|
}
|