Play-/Source/ElfFile.cpp
jpd002 97e5401808 Cleanup.
git-svn-id: http://svn.purei.org/purei/trunk@1018 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-10-16 02:17:38 +00:00

32 lines
511 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;
}