Пример #1
0
 internal Enumerator(GapBuffer <T> buffer)
 {
     _gapBuffer = buffer;
     _index     = 0;
     _version   = _gapBuffer._version;
     _current   = default(T);
 }
Пример #2
0
 /// <summary>
 /// Reset the lines list
 /// </summary>
 private void Init()
 {
     _linesList = new GapBuffer <int> {
         0, 0
     };
     _holeLine               = 0;
     _holeLenght             = 0;
     _singleByteCharEncoding = false;
 }