mirror of
https://github.com/libretro/Play-.git
synced 2024-12-01 04:30:55 +00:00
97e5401808
git-svn-id: http://svn.purei.org/purei/trunk@1018 b36208d7-6611-0410-8bec-b1987f11c4a2
32 lines
511 B
C++
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;
|
|
}
|