Beispiel #1
0
 public ControlAnalyze(ThreadEntity currentTheadEntity, string map, bool useInnerMark = false)
 {
     if (useInnerMark) {
         _indexStartBytes = AppSetting.INNER_START_MARK;
         _indexEndBytes = AppSetting.INNER_END_MARK;
     } else {
         _indexStartBytes = AppSetting.START_MARK;
         _indexEndBytes = AppSetting.END_MARK;
     }
     _currentThreadEntity = currentTheadEntity;
     _analyzeResultCollection = new Control.AnalyzeResultCollection();
     _controlCollection = new List<IControl>();
     _content = new byte[0];
     _map = map;
     #if DEBUG
     Xy.Tools.Debug.Log.WriteEventLog(_map + " control analyze created");
     #endif
 }
Beispiel #2
0
 public void SetContent(byte[] content)
 {
     _content = content;
     if (_content.Length > 3
        && _content[0] == bomBuffer[0]
        && _content[1] == bomBuffer[1]
        && _content[2] == bomBuffer[2]) {
         _point = 3;
     } else {
         _point = 0;
     }
     _isHandled = false;
     _analyzeResultCollection = new Control.AnalyzeResultCollection();
     _controlCollection = new List<IControl>();
 }