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);
else
TABLE_eDebugNoNewLine("-");
- TABLE_eDebug(" %d/%d TID %02x", avail.size(), max, data[0]);
+ TABLE_eDebug(" %zd/%d TID %02x", avail.size(), max, data[0]);
if (avail.size() == max)
{
}
public:
std::vector<Section*> &getSections() { return sections; }
+ unsigned char* getBufferData() { return m_section_data; }
eTable(bool debug=true): eGTable(debug)
{
}