Ejemplo n.º 1
0
 public SendQueue.Class132 method_0()
 {
     SendQueue.Class132 class1320 = null;
     if (this.queue_0.Count == 0 && this.class132_0 != null)
     {
         class1320 = this.class132_0;
         this.queue_0.Enqueue(this.class132_0);
         this.class132_0 = null;
     }
     return(class1320);
 }
Ejemplo n.º 2
0
 public SendQueue.Class132 method_1()
 {
     SendQueue.Class132 class132 = null;
     if (this.queue_0.Count > 0)
     {
         this.queue_0.Dequeue().method_1();
         if (this.queue_0.Count > 0)
         {
             class132 = this.queue_0.Peek();
         }
     }
     return(class132);
 }
Ejemplo n.º 3
0
 public SendQueue.Class132 method_4(byte[] byte_0, int int_2, int int_3)
 {
     if (byte_0 == null)
     {
         throw new ArgumentNullException("buffer");
     }
     if (int_2 < 0 || int_2 >= (int)byte_0.Length)
     {
         throw new ArgumentOutOfRangeException("offset", (object)int_2, "Offset must be greater than or equal to zero and less than the size of the buffer.");
     }
     if (int_3 < 0 || int_3 > (int)byte_0.Length)
     {
         throw new ArgumentOutOfRangeException("length", (object)int_3, "Length cannot be less than zero or greater than the size of the buffer.");
     }
     if ((int)byte_0.Length - int_2 < int_3)
     {
         throw new ArgumentException("Offset and length do not point to a valid segment within the buffer.");
     }
     if (this.queue_0.Count * SendQueue.int_1 + (this.class132_0 == null ? 0 : this.class132_0.Length) + int_3 > 3072000)
     {
         throw new Exception1();
     }
     SendQueue.Class132 class1320 = null;
     while (int_3 > 0)
     {
         if (World.jlMsg == 1)
         {
             Form1.WriteLine(0, "Enqueue");
         }
         if (this.class132_0 == null)
         {
             this.class132_0 = SendQueue.Class132.smethod_0();
         }
         int num = this.class132_0.method_0(byte_0, int_2, int_3);
         int_2 = int_2 + num;
         int_3 = int_3 - num;
         if (!this.class132_0.IsFull)
         {
             continue;
         }
         if (this.queue_0.Count == 0)
         {
             class1320 = this.class132_0;
         }
         this.queue_0.Enqueue(this.class132_0);
         this.class132_0 = null;
     }
     return(class1320);
 }
Ejemplo n.º 4
0
 public void method_5()
 {
     if (this.class132_0 != null)
     {
         this.class132_0.method_1();
         this.class132_0 = null;
     }
     while (this.queue_0.Count > 0)
     {
         if (World.jlMsg == 1)
         {
             Form1.WriteLine(0, "Clear");
         }
         this.queue_0.Dequeue().method_1();
     }
 }
Ejemplo n.º 5
0
 public void Dispose()
 {
     this.queue_0.Clear();
     this.queue_0    = null;
     this.class132_0 = null;
 }