Ejemplo n.º 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);
        }
Ejemplo n.º 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;
     }
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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);
 }