public CommonAnalyser() { torrentStream = null; BNodeList = new List<IBNode>(); _bNodeFactory = new BNodeFactory(BNodeList); index = 0; }
public CommonAnalyser() { torrentStream = null; BNodeList = new List <IBNode>(); _bNodeFactory = new BNodeFactory(BNodeList); index = 0; }
public IBNode Analysis(byte[] torrentStream) { // 清空上一次处理的信息 BNodeList = new List<IBNode>(); _bNodeFactory = new BNodeFactory(BNodeList); index = 0; this.torrentStream = torrentStream; // bt文件一定是一个字典开始的 DictNode rootNode = _bNodeFactory.GetBNode('d') as DictNode; AnalysisDictionary(rootNode); return rootNode; }
public IBNode Analyse(byte[] torrentStream) { // 清空上一次处理的信息 BNodeList = new List <IBNode>(); _bNodeFactory = new BNodeFactory(BNodeList); index = 0; this.torrentStream = torrentStream; // bt文件一定是一个字典开始的 DictNode rootNode = _bNodeFactory.GetBNode('d') as DictNode; AnalyseDictionary(rootNode); return(rootNode); }