mistserver/src/analysers/analyser_ebml.h

17 lines
388 B
C++

#include "analyser.h"
#include <deque>
class AnalyserEBML : public Analyser{
public:
AnalyserEBML(Util::Config &conf);
static void init(Util::Config &conf);
bool parsePacket();
private:
uint64_t neededBytes();
std::string dataBuffer;
uint64_t curPos;
uint64_t prePos;
std::deque<uint64_t> depthStash;///<Contains bytes to read to go up a level in the element depth.
};