예제 #1
0
 public CommonAnalyser()
 {
     torrentStream = null;
     BNodeList = new List<IBNode>();
     _bNodeFactory = new BNodeFactory(BNodeList);
     index = 0;
 }
예제 #2
0
 public CommonAnalyser()
 {
     torrentStream = null;
     BNodeList     = new List <IBNode>();
     _bNodeFactory = new BNodeFactory(BNodeList);
     index         = 0;
 }
예제 #3
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;
        }
예제 #4
0
        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);
        }