Exemplo n.º 1
0
 public InvalidatedRegion GetCopyAndReset()
 {
     lock (this) {
         InvalidatedRegion copy = (InvalidatedRegion)MemberwiseClone();
         Reset();
         return(copy);
     }
 }
Exemplo n.º 2
0
        protected int _size; //�T�C�Y��_firstLine/lastLine����v�Z�”\�����悭�g���̂ŃL���b�V��

        #endregion Fields

        #region Constructors

        public CharacterDocument()
        {
            _invalidatedRegion = new InvalidatedRegion();
        }
        public static void MarkReceiveData(InvalidatedRegion region)
        {
            _receiveDataCount++;
            long now = DateTime.Now.Ticks;
            if (_lastReceivedTime != 0) {
                if (now - _lastReceivedTime < 10 * 1000 * 100)
                    _shortReceiveTimeCount++;
            }
            _lastReceivedTime = now;

            if (region.InvalidatedAll)
                _fullInvalidateCount++;
            else {
                _partialInvalidateCount++;
                _totalInvalidatedLineCount += region.LineIDEnd - region.LineIDStart + 1;
                if (region.LineIDStart == region.LineIDEnd)
                    _invalidate1LineCount++;
            }
        }
Exemplo n.º 4
0
 public CharacterDocument()
 {
     _invalidatedRegion = new InvalidatedRegion();
 }