Play-/Source/ElfFile.cpp
2018-04-30 21:01:23 +01:00

29 lines
512 B
C++

#include "ElfFile.h"
CElfFile::CElfFile(Framework::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;
}