mirror of
https://github.com/libretro/Play-.git
synced 2024-11-27 18:50:28 +00:00
29 lines
512 B
C++
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;
|
|
}
|