2008-10-20 04:12:44 +00:00
|
|
|
#include "ElfFile.h"
|
|
|
|
|
|
|
|
CElfFileContainer::CElfFileContainer(Framework::CStream& input)
|
|
|
|
{
|
2023-08-26 20:37:38 -04:00
|
|
|
m_size = input.GetLength();
|
|
|
|
m_content = new uint8[m_size];
|
|
|
|
input.Read(m_content, m_size);
|
2008-10-20 04:12:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
CElfFileContainer::~CElfFileContainer()
|
|
|
|
{
|
2018-04-30 21:01:23 +01:00
|
|
|
delete[] m_content;
|
2008-10-20 04:12:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
uint8* CElfFileContainer::GetFileContent() const
|
|
|
|
{
|
2012-10-16 02:17:38 +00:00
|
|
|
return m_content;
|
2008-10-20 04:12:44 +00:00
|
|
|
}
|
2023-08-26 20:37:38 -04:00
|
|
|
|
|
|
|
uint64 CElfFileContainer::GetFileSize() const
|
|
|
|
{
|
|
|
|
return m_size;
|
|
|
|
}
|