private:
std::vector<Section*> sections;
std::set<int> avail;
+ unsigned char m_section_data[4096];
protected:
int createTable(unsigned int nr, const __u8 *data, unsigned int max)
{
if (avail.find(nr) != avail.end())
delete sections[nr];
+ memset(m_section_data, 0, 4096);
+ memcpy(m_section_data, data, 4096);
+
sections.resize(max);
sections[nr] = new Section(data);
avail.insert(nr);
}
public:
std::vector<Section*> &getSections() { return sections; }
+ unsigned char* getBufferData() { return m_section_data; }
eTable(bool debug=true): eGTable(debug)
{
}