internal Class996() { this.stringCollection_0 = new StringCollection(); this.class147_0 = new Class147(0); this.class147_1 = new Class147(0); this.idictionary_0 = Class83.smethod_0(); }
internal static SerializationCallback smethod_0(MethodInfo methodInfo_0) { Class83 class2 = new Class83 { methodInfo_0 = methodInfo_0 }; return(new SerializationCallback(class2.method_0)); }
// Token: 0x0600004E RID: 78 RVA: 0x00002E12 File Offset: 0x00001012 public override Class80 vmethod_4() { Class83 @class = new Class83(); @class.method_3(this.uintptr_0); @class.method_1(base.method_0()); return(@class); }
public void imethod_9() { if (this.class83_0 != null) { this.class83_0.GetIUdpSessionHelper().imethod_4(); this.safeDictionary_0.Clear(); this.int_0 = 0; this.class83_0.Dispose(); this.class83_0 = null; } }
internal Class996(Class703 A_0, BinaryReader A_1) { this.stringCollection_0 = new StringCollection(); this.class147_0 = new Class147(0); this.class147_1 = new Class147(0); this.idictionary_0 = Class83.smethod_0(); Class343.smethod_1(A_1, A_0.class597_0.class1111_21, this.stringCollection_0); A_1.BaseStream.Seek((long)A_0.class597_0.class1111_23.int_0, SeekOrigin.Begin); Class144.smethod_0(A_1, A_0.class597_0.class1111_23.int_1, 0, new Class997(this), BookmarkStart.b("眦䔨䠪䬬䴮娰弲", 1)); A_1.BaseStream.Seek((long)A_0.class597_0.class1111_22.int_0, SeekOrigin.Begin); Class144.smethod_0(A_1, A_0.class597_0.class1111_22.int_1, 4, new Class998(this), BookmarkStart.b("眦䔨䠪䬬䴮娰唲", 1)); this.class147_0.method_8(0x7fffffff); this.class147_1.method_8(0x7fffffff); this.method_0(A_0); }
private void method_7() { this.class83_0 = new Class83(); this.class83_0.imethod_19(this.object_0.imethod_1()); this.class83_0.SetStreamContract(this.object_0.GetStreamContract()); this.class83_0.SetAgileLogger(this.emptyAgileLogger_0); this.class83_0.imethod_10(this.object_0.imethod_9()); this.class83_0.imethod_12(this.object_0.imethod_11()); this.class83_0.SetData(0); this.class83_0.imethod_8(this.object_0.imethod_7()); this.class83_0.SocketSendBuffSize = this.object_0.SocketSendBuffSize; this.class83_0.method_0(this.class164_0, true, this, this.string_0); this.class83_0.GetIUdpSessionHelper().UdpSessionClosed += new CbGeneric <Interface17, SessionClosedCause>(this.OnP2PChannelClosed); this.class83_0.GetIUdpSessionHelper().UdpSessionOpened += new CbGeneric <Interface17>(this.OnP2PChannelOpened); }
// Token: 0x0600050D RID: 1293 RVA: 0x00028EB4 File Offset: 0x000270B4 private void method_2(string string_0) { Class83 @class; if (!Struct42.conditionalWeakTable_0.TryGetValue(string_0, out @class)) { Class12 class2 = new Class12 { class179_0 = new Class179(), weakReference_0 = new WeakReference(string_0), weakReference_1 = new WeakReference(string_0, true) }; @class = new Class83(string_0, class2, class2.class179_0); Struct42.conditionalWeakTable_0.Add(string_0, @class); } this.class58_0.class12_0 = @class.class12_0; }
public void method_2(byte[] byte_1) { int num; if (this.enum3_0 == Enum3.const_1) { num = ((this.enum5_0 == Enum5.const_3) ? 17 : 32); } else { num = ((this.enum5_0 == Enum5.const_3) ? 9 : 17); } try { string @string = Encoding.UTF8.GetString(byte_1, num, 4); if (@string.Equals("Xing") || @string.Equals("Info")) { this.bool_2 = true; this.int_9 = -1; this.int_11 = -1; this.int_10 = -1; byte[] array = new byte[100]; int num2 = zzSoundClass.smethod_0(BitConverter.ToInt32(byte_1, num + 4)); int num3 = 8; if ((num2 & 1) != 0) { this.int_9 = zzSoundClass.smethod_0(BitConverter.ToInt32(byte_1, num + num3)); num3 += 4; } if ((num2 & 2) != 0) { this.int_11 = zzSoundClass.smethod_0(BitConverter.ToInt32(byte_1, num + num3)); num3 += 4; } if ((num2 & 4) != 0) { Buffer.BlockCopy(byte_1, num + num3, array, 0, array.Length); num3 += array.Length; this.class83_0 = new Class83(array, this.int_11); } if ((num2 & 8) != 0) { this.int_10 = zzSoundClass.smethod_0(BitConverter.ToInt32(byte_1, num + num3)); num3 += 4; } } } catch (IndexOutOfRangeException exception_) { throw new BitstreamException("Xing Header Corrupted", exception_); } num = 32; try { if (Encoding.UTF8.GetString(byte_1, num, 4).Equals("VBRI")) { this.bool_2 = true; this.int_9 = -1; this.int_11 = -1; this.int_10 = -1; this.int_10 = (int)zzSoundClass.smethod_1(BitConverter.ToInt16(byte_1, num + 8)); this.int_11 = zzSoundClass.smethod_0(BitConverter.ToInt32(byte_1, num + 10)); this.int_9 = zzSoundClass.smethod_0(BitConverter.ToInt32(byte_1, num + 14)); int[] array2 = new int[(int)zzSoundClass.smethod_1(BitConverter.ToInt16(byte_1, num + 18))]; short num4 = zzSoundClass.smethod_1(BitConverter.ToInt16(byte_1, num + 20)); short num5 = zzSoundClass.smethod_1(BitConverter.ToInt16(byte_1, num + 22)); short num6 = zzSoundClass.smethod_1(BitConverter.ToInt16(byte_1, num + 24)); int num7 = 26; switch (num5) { case 1: { int i = 0; while (i < array2.Length) { array2[i] = (int)((short)byte_1[num + num7] * num4); i++; num7++; } break; } case 2: { int j = 0; while (j < array2.Length) { array2[j] = (int)(zzSoundClass.smethod_1(BitConverter.ToInt16(byte_1, num + num7)) * num4); j++; num7 += 2; } break; } case 3: { int k = 0; while (k < array2.Length) { array2[k] = Struct8.smethod_0(Struct8.smethod_3(byte_1, num + num7, true)) * (int)num4; k++; num7 += 3; } break; } case 4: { int l = 0; while (l < array2.Length) { array2[l] = zzSoundClass.smethod_0(BitConverter.ToInt32(byte_1, num + num7)) * (int)num4; l++; num7 += 4; } break; } default: throw new Exception("Size per table entry in bytes - is bigger then 4: " + num5); } this.class83_0 = new Class83(array2, num6); } } catch (IndexOutOfRangeException exception_2) { throw new BitstreamException("VBRI Header Corrupted", exception_2); } }
public static Class335 smethod_0() { return(new Class335(Class83.smethod_0())); }
public void method_2(byte[] byte1) { int num; if (_enum30 == Enum3.Const1) { num = ((_enum50 == Enum5.Const3) ? 17 : 32); } else { num = ((_enum50 == Enum5.Const3) ? 9 : 17); } try { var @string = Encoding.UTF8.GetString(byte1, num, 4); if (@string.Equals("Xing") || @string.Equals("Info")) { _bool2 = true; _int9 = -1; _int11 = -1; _int10 = -1; var array = new byte[100]; var num2 = smethod_0(BitConverter.ToInt32(byte1, num + 4)); var num3 = 8; if ((num2 & 1) != 0) { _int9 = smethod_0(BitConverter.ToInt32(byte1, num + num3)); num3 += 4; } if ((num2 & 2) != 0) { _int11 = smethod_0(BitConverter.ToInt32(byte1, num + num3)); num3 += 4; } if ((num2 & 4) != 0) { Buffer.BlockCopy(byte1, num + num3, array, 0, array.Length); num3 += array.Length; _class830 = new Class83(array, _int11); } if ((num2 & 8) != 0) { _int10 = smethod_0(BitConverter.ToInt32(byte1, num + num3)); num3 += 4; } } } catch (IndexOutOfRangeException exception) { throw new BitstreamException("Xing Header Corrupted", exception); } num = 32; try { if (Encoding.UTF8.GetString(byte1, num, 4).Equals("VBRI")) { _bool2 = true; _int9 = -1; _int11 = -1; _int10 = -1; _int10 = smethod_1(BitConverter.ToInt16(byte1, num + 8)); _int11 = smethod_0(BitConverter.ToInt32(byte1, num + 10)); _int9 = smethod_0(BitConverter.ToInt32(byte1, num + 14)); var array2 = new int[smethod_1(BitConverter.ToInt16(byte1, num + 18))]; var num4 = smethod_1(BitConverter.ToInt16(byte1, num + 20)); var num5 = smethod_1(BitConverter.ToInt16(byte1, num + 22)); var num6 = smethod_1(BitConverter.ToInt16(byte1, num + 24)); var num7 = 26; switch (num5) { case 1: { var i = 0; while (i < array2.Length) { array2[i] = byte1[num + num7] * num4; i++; num7++; } break; } case 2: { var j = 0; while (j < array2.Length) { array2[j] = smethod_1(BitConverter.ToInt16(byte1, num + num7)) * num4; j++; num7 += 2; } break; } case 3: { var k = 0; while (k < array2.Length) { array2[k] = Struct8.smethod_0(Struct8.smethod_3(byte1, num + num7, true)) * num4; k++; num7 += 3; } break; } case 4: { var l = 0; while (l < array2.Length) { array2[l] = smethod_0(BitConverter.ToInt32(byte1, num + num7)) * num4; l++; num7 += 4; } break; } default: throw new Exception("Size per table entry in bytes - is bigger then 4: " + num5); } _class830 = new Class83(array2, num6); } } catch (IndexOutOfRangeException exception2) { throw new BitstreamException("VBRI Header Corrupted", exception2); } }
// Token: 0x06000148 RID: 328 RVA: 0x0000F174 File Offset: 0x0000D374 public static Class80 smethod_1(object object_0, Type type_0) { Class80 @class = object_0 as Class80; if (@class != null) { return(@class); } if (type_0 == null) { if (object_0 == null) { return(new Class90()); } type_0 = object_0.GetType(); } type_0 = Class37.smethod_1(type_0); if (type_0 == Class175.type_0) { @class = new Class90(); if (object_0 != null && object_0.GetType() != Class175.type_0) { @class.method_1(object_0.GetType()); } } else if (Class29.smethod_0 <Array>(type_0)) { @class = new Class93(); } else if (Class29.smethod_0 <string>(type_0)) { @class = new Class96(); } else if (Class29.smethod_0 <IntPtr>(type_0)) { @class = new Class99(); } else if (Class29.smethod_0 <UIntPtr>(type_0)) { @class = new Class83(); } else if (Class29.smethod_0 <ulong>(type_0)) { @class = new Class89(); } else if (Class29.smethod_0 <uint>(type_0)) { @class = new Class92(); } else if (Class29.smethod_0 <ushort>(type_0)) { @class = new Class87(); } else if (Class29.smethod_0 <long>(type_0)) { @class = new Class82(); } else if (Class29.smethod_0 <int>(type_0)) { @class = new Class98(); } else if (Class29.smethod_0 <short>(type_0)) { @class = new Class94(); } else if (Class29.smethod_0 <byte>(type_0)) { @class = new Class88(); } else if (Class29.smethod_0 <sbyte>(type_0)) { @class = new Class85(); } else if (Class29.smethod_0 <double>(type_0)) { @class = new Class86(); } else if (Class29.smethod_0 <float>(type_0)) { @class = new Class91(); } else if (Class29.smethod_0 <bool>(type_0)) { @class = new Class97(); } else if (Class29.smethod_0 <char>(type_0)) { @class = new Class81(); } else if (Class175.smethod_0(type_0)) { Class90 class2 = new Class90(); class2.method_1(type_0); @class = class2; } else { if (Class29.smethod_0 <Enum>(type_0)) { Enum enum_; if (object_0 == null) { if (type_0 == Class175.type_2) { enum_ = null; } else { enum_ = (Enum)Activator.CreateInstance(type_0); } } else if (type_0 == Class175.type_2 && object_0 is Enum) { enum_ = (Enum)object_0; } else { enum_ = (Enum)Enum.ToObject(type_0, object_0); } return(new Class84(enum_)); } if (Class29.smethod_0 <ValueType>(type_0)) { if (object_0 == null) { object object_; if (type_0 == Class175.type_3) { object_ = null; } else { object_ = Activator.CreateInstance(type_0); } @class = new Class107(object_); } else { if (object_0.GetType() != type_0) { try { object_0 = Convert.ChangeType(object_0, type_0); } catch { } } @class = new Class107(object_0); } return(@class); } @class = new Class90(); } if (object_0 != null) { @class.vmethod_1(object_0); } return(@class); }