// Token: 0x06001318 RID: 4888 RVA: 0x000049EC File Offset: 0x00002BEC
 internal void method_50(object object_0, Class67 class67_0)
 {
     if (this.delegate162_0 != null)
     {
         this.delegate162_0(object_0, class67_0);
     }
 }
Example #2
0
        public int method_2(Class67 class67_0)
        {
            OGGClass5 oggClass5 = this.oggClass1.oggClass5;

            this.oggClass3.method_4(class67_0.byte_0, class67_0.int_0, class67_0.int_1);
            if (this.oggClass3.method_6(1) != 0)
            {
                return(-1);
            }
            int num = this.oggClass3.method_6(this.oggClass1.int_3);

            if (num == -1)
            {
                return(-1);
            }
            this.int_4 = num;
            this.int_1 = oggClass5.class27_0[this.int_4].int_0;
            if (this.int_1 != 0)
            {
                this.int_0 = this.oggClass3.method_6(1);
                this.int_2 = this.oggClass3.method_6(1);
                if (this.int_2 == -1)
                {
                    return(-1);
                }
            }
            else
            {
                this.int_0 = 0;
                this.int_2 = 0;
            }
            this.long_0 = class67_0.long_0;
            this.long_1 = class67_0.long_1 - 3L;
            this.int_5  = class67_0.int_3;
            this.int_3  = oggClass5.int_13[this.int_1];
            if (this.float_0.Length < oggClass5.int_8)
            {
                this.float_0 = new float[oggClass5.int_8][];
            }
            for (int i = 0; i < oggClass5.int_8; i++)
            {
                if (this.float_0[i] != null && this.float_0[i].Length >= this.int_3)
                {
                    for (int j = 0; j < this.int_3; j++)
                    {
                        this.float_0[i][j] = 0f;
                    }
                }
                else
                {
                    this.float_0[i] = new float[this.int_3];
                }
            }
            int num2 = oggClass5.int_21[oggClass5.class27_0[this.int_4].int_3];

            return(Class34.class34_0[num2].vmethod_3(this, this.oggClass1.object_1[this.int_4]));
        }
Example #3
0
 public int method_2(Class67 class67_0)
 {
     OGGClass5 oggClass5 = this.oggClass1.oggClass5;
     this.oggClass3.method_4(class67_0.byte_0, class67_0.int_0, class67_0.int_1);
     if (this.oggClass3.method_6(1) != 0)
     {
         return -1;
     }
     int num = this.oggClass3.method_6(this.oggClass1.int_3);
     if (num == -1)
     {
         return -1;
     }
     this.int_4 = num;
     this.int_1 = oggClass5.class27_0[this.int_4].int_0;
     if (this.int_1 != 0)
     {
         this.int_0 = this.oggClass3.method_6(1);
         this.int_2 = this.oggClass3.method_6(1);
         if (this.int_2 == -1)
         {
             return -1;
         }
     }
     else
     {
         this.int_0 = 0;
         this.int_2 = 0;
     }
     this.long_0 = class67_0.long_0;
     this.long_1 = class67_0.long_1 - 3L;
     this.int_5 = class67_0.int_3;
     this.int_3 = oggClass5.int_13[this.int_1];
     if (this.float_0.Length < oggClass5.int_8)
     {
         this.float_0 = new float[oggClass5.int_8][];
     }
     for (int i = 0; i < oggClass5.int_8; i++)
     {
         if (this.float_0[i] != null && this.float_0[i].Length >= this.int_3)
         {
             for (int j = 0; j < this.int_3; j++)
             {
                 this.float_0[i][j] = 0f;
             }
         }
         else
         {
             this.float_0[i] = new float[this.int_3];
         }
     }
     int num2 = oggClass5.int_21[oggClass5.class27_0[this.int_4].int_3];
     return Class34.class34_0[num2].vmethod_3(this, this.oggClass1.object_1[this.int_4]);
 }
Example #4
0
 public int method_5(Class67 class67_0)
 {
     int num = this.int_7;
     if (this.int_6 <= num)
     {
         return 0;
     }
     if ((this.int_3[num] & 1024) != 0)
     {
         this.int_7++;
         this.long_1 += 1L;
         return -1;
     }
     int num2 = this.int_3[num] & 255;
     class67_0.byte_0 = this.byte_0;
     class67_0.int_0 = this.int_2;
     class67_0.int_3 = (this.int_3[num] & 512);
     class67_0.int_2 = (this.int_3[num] & 256);
     int num3 = 0 + num2;
     while (num2 == 255)
     {
         int num4 = this.int_3[++num];
         num2 = (num4 & 255);
         if ((num4 & 512) != 0)
         {
             class67_0.int_3 = 512;
         }
         num3 += num2;
     }
     class67_0.long_1 = this.long_1;
     class67_0.long_0 = this.long_0[num];
     class67_0.int_1 = num3;
     this.int_2 += num3;
     this.int_7 = num + 1;
     this.long_1 += 1L;
     return 1;
 }
Example #5
0
 private int method_2(OGGClass5 oggClass5, Class47 class47_1, int[] int_24, Class48 class48_0)
 {
     Class48 @class = new Class48();
     Class67 class67_ = new Class67();
     if (class48_0 == null)
     {
         int num = this.method_0(@class, (long)OGGStream.int_2);
         if (num == OGGStream.int_9)
         {
             return OGGStream.int_9;
         }
         if (num < 0)
         {
             return OGGStream.int_13;
         }
         class48_0 = @class;
     }
     if (int_24 != null)
     {
         int_24[0] = class48_0.method_5();
     }
     this.class56_0.method_1(class48_0.method_5());
     oggClass5.method_0();
     class47_1.method_0();
     int i = 0;
     while (i < 3)
     {
         this.class56_0.method_6(class48_0);
         while (i < 3)
         {
             int num2 = this.class56_0.method_5(class67_);
             if (num2 == 0)
             {
                 break;
             }
             if (num2 == -1)
             {
                 Console.Error.WriteLine("Corrupt header in logical bitstream.");
                 oggClass5.method_1();
                 class47_1.method_2();
                 this.class56_0.method_2();
                 return -1;
             }
             if (oggClass5.method_4(class47_1, class67_) != 0)
             {
                 Console.Error.WriteLine("Illegal header in logical bitstream.");
                 oggClass5.method_1();
                 class47_1.method_2();
                 this.class56_0.method_2();
                 return -1;
             }
             i++;
         }
         if (i < 3 && this.method_0(class48_0, 1L) < 0)
         {
             Console.Error.WriteLine("Missing header in logical bitstream.");
             oggClass5.method_1();
             class47_1.method_2();
             this.class56_0.method_2();
             return -1;
         }
     }
     return 0;
 }
Example #6
0
 private int method_6(int int_24)
 {
     Class48 @class = new Class48();
     Class67 class2;
     long num2;
     while (true)
     {
         if (this.bool_1)
         {
             class2 = new Class67();
             int num = this.class56_0.method_5(class2);
             if (num > 0)
             {
                 num2 = class2.long_0;
                 if (this.oggClass6.method_2(class2) == 0)
                 {
                     goto Block_11;
                 }
             }
         }
         if (int_24 == 0)
         {
             return 0;
         }
         if (this.method_0(@class, -1L) < 0)
         {
             return 0;
         }
         this.float_0 += (float)(@class.int_1 << 3);
         if (this.bool_1 && this.int_22 != @class.method_5())
         {
             this.method_5();
         }
         if (!this.bool_1)
         {
             if (this.bool_0)
             {
                 this.int_22 = @class.method_5();
                 int num3 = 0;
                 while (num3 < this.int_20 && this.int_21[num3] != this.int_22)
                 {
                     num3++;
                 }
                 if (num3 == this.int_20)
                 {
                     break;
                 }
                 this.int_23 = num3;
                 this.class56_0.method_1(this.int_22);
                 this.class56_0.method_7();
             }
             else
             {
                 int[] array = new int[1];
                 int num4 = this.method_2(this.oggClass5[0], this.class47_0[0], array, @class);
                 this.int_22 = array[0];
                 if (num4 != 0)
                 {
                     return num4;
                 }
                 this.int_23++;
             }
             this.method_4();
         }
         this.class56_0.method_6(@class);
     }
     return -1;
     Block_11:
     int num5 = this.oggClass1.method_3();
     this.oggClass1.method_2(this.oggClass6);
     this.float_1 += (float)(this.oggClass1.method_3() - num5);
     this.float_0 += (float)(class2.int_1 * 8);
     if (num2 != -1L && class2.int_3 == 0)
     {
         int num6 = this.bool_0 ? this.int_23 : 0;
         int num7 = this.oggClass1.method_3();
         num2 -= (long)num7;
         for (int i = 0; i < num6; i++)
         {
             num2 += this.long_3[i];
         }
         this.long_4 = num2;
     }
     return 1;
 }
Example #7
0
 public int method_4(Class47 class47_0, Class67 class67_0)
 {
     OGGClass3 @class = new OGGClass3();
     if (class67_0 != null)
     {
         @class.method_4(class67_0.byte_0, class67_0.int_0, class67_0.int_1);
         byte[] array = new byte[6];
         int num = @class.method_6(8);
         @class.method_5(array, 6);
         if (array[0] == 118 && array[1] == 111 && array[2] == 114 && array[3] == 98 && array[4] == 105)
         {
             if (array[5] == 115)
             {
                 switch (num)
                 {
                 case 1:
                     if (class67_0.int_2 == 0)
                     {
                         return -1;
                     }
                     if (this.int_9 != 0)
                     {
                         return -1;
                     }
                     return this.method_2(@class);
                 case 2:
                 case 4:
                     return -1;
                 case 3:
                     if (this.int_9 == 0)
                     {
                         return -1;
                     }
                     return class47_0.method_1(@class);
                 case 5:
                     if (this.int_9 != 0 && class47_0.byte_1 != null)
                     {
                         return this.method_3(@class);
                     }
                     return -1;
                 default:
                     return -1;
                 }
             }
         }
         return -1;
     }
     return -1;
 }