Пример #1
0
        public string GetStringAndRelease()
        {
            string arg_1F_0 = this.ToString();

            SBuffer.Release(this.buffer);
            this.buffer  = null;
            this.standby = null;
            return(arg_1F_0);
        }
Пример #2
0
 private void Flush()
 {
     if (this.pos > 0)
     {
         if (this.tw != null)
         {
             this.tw.Write(this.buffer, 0, this.pos);
         }
         else
         {
             if (this.standby == null)
             {
                 this.standby = new Standby();
             }
             this.standby.Write(new string(this.cb, 0, this.pos));
         }
         this.pos = 0;
     }
 }
Пример #3
0
 private void Flush(char[] value, int start, int count)
 {
     if (this.tw != null)
     {
         if (this.pos > 0)
         {
             this.tw.Write(this.buffer, 0, this.pos);
             this.pos = 0;
         }
         this.tw.Write(value, start, count);
         return;
     }
     if (this.standby == null)
     {
         this.standby = new Standby();
     }
     if (this.pos > 0)
     {
         this.standby.Write(new string(this.cb, 0, this.pos));
         this.pos = 0;
     }
     this.standby.Write(new string(value, start, count));
 }
Пример #4
0
 private void Flush(string value)
 {
     if (this.tw != null)
     {
         if (this.pos > 0)
         {
             this.tw.Write(this.buffer, 0, this.pos);
             this.pos = 0;
         }
         this.tw.Write(value);
         return;
     }
     if (this.standby == null)
     {
         this.standby = new Standby();
     }
     if (this.pos > 0)
     {
         this.standby.Write(new string(this.cb, 0, this.pos));
         this.pos = 0;
     }
     this.standby.Write(value);
 }