void EnsureCapacity () { char [] tmpBuffer = new char [_buffer.Length * 2]; Array.Copy (_buffer, tmpBuffer, _buffer.Length); _buffer = tmpBuffer; } }