public MP3Class(Stream stream_1, int int_5, Enum4 enum4_0, int int_6) { this.class81_0 = new zzSoundClass81[int_5]; for (int i = 0; i < this.class81_0.Length; i++) { this.class81_0[i] = new zzSoundClass81(new Class104(enum4_0)); } this.fileStream = stream_1; this.class82_0 = new Class82(this.fileStream, int_6); this.int_2 = this.class82_0.method_2(); this.long_0 = -1L; this.class107_0 = null; if (!this.method_0()) { throw new Mp3Exception("Mp3 Decoder: Cannot read header."); } this.short_0 = 0; for (int j = 0; j < this.class81_0.Length; j++) { this.short_0 += (short)this.class81_0[j].method_2(); } this.int_4 = this.class81_0[0].method_1(); this.waveFormat_0 = new WaveFormat(this.int_4, (int)this.short_0); this.double_0 = (double)(this.waveFormat_0.int_0 * ((int)this.waveFormat_0.short_1 / this.class81_0.Length)) / ((double)this.int_3 / 8.0); this.long_1 = 0L; if (this.class107_0 != null && this.class107_0.method_10()) { this.long_0 = Convert.ToInt64(this.class107_0.method_18((int)(this.fileStream.Length - (long)this.int_2) / this.class81_0.Length) * ((double)this.waveFormat_0.int_0 * ((double)this.waveFormat_0.short_1 / 1000.0))); } if (this.long_0 <= 0L) { this.long_0 = (long)((double)(this.fileStream.Length - (long)this.int_2) * this.double_0); } }
public void Test1() { Map.Extensions = TypeExtension.GetExtensions("Mapping.xml"); Enum1 e1 = (Enum1)Map.ValueToEnum("3", typeof(Enum1)); Assert.AreEqual(Enum1.Value2, e1); Enum2 e2 = (Enum2)Map.ValueToEnum("3", typeof(Enum2)); Assert.AreEqual(Enum2.Value2, e2); Enum3 e3 = (Enum3)Map.ValueToEnum("4", typeof(Enum3)); Assert.AreEqual(Enum3.Value2, e3); Enum4 e4 = (Enum4)Map.ValueToEnum("4", typeof(Enum4)); Assert.AreEqual(Enum4.Value2, e4); Dest o = (Dest)Map.ObjectToObject(new Source(), typeof(Dest)); Assert.AreEqual(Enum1.Value2, o.Field1); Assert.AreEqual(Enum1.Value1, o.Field2); Assert.AreEqual(Enum2.Value1, o.Field3); }
public MP3Stream(Stream stream_1, Enum4 enum4_0, int int_5) { this.class81_0 = new zzSoundClass81(new Class104(enum4_0)); this.fileStream = stream_1; this.class82_0 = new Class82(this.fileStream, int_5); this.int_2 = this.class82_0.method_2(); this.long_0 = -1L; this.class107_0 = null; if (!this.method_0()) { throw new Mp3Exception("Mp3 Decoder: Cannot read header."); } this.short_0 = (short)this.class81_0.method_2(); this.int_4 = this.class81_0.method_1(); this.waveFormat_0 = new WaveFormat(this.int_4, (int)this.short_0); this.double_0 = (double)(this.waveFormat_0.int_0 * (int)this.waveFormat_0.short_1) / ((double)this.int_3 / 8.0); this.long_1 = 0L; if (this.class107_0 != null && this.class107_0.method_10()) { this.long_0 = Convert.ToInt64(this.class107_0.method_18((int)(this.fileStream.Length - (long)this.int_2)) * ((double)this.waveFormat_0.int_0 * ((double)this.waveFormat_0.short_1 / 1000.0))); this.class83_0 = this.class107_0.method_11(); if (this.class83_0 != null && this.class83_0.int_2 == -1) { this.class83_0.int_2 = (int)(this.fileStream.Length - (long)this.int_2); } } if (this.long_0 <= 0L) { this.long_0 = (long)((double)(this.fileStream.Length - (long)this.int_2) * this.double_0); } }
public Mp3Stream(Stream stream1, Enum4 enum40, int int5) { _class810 = new ZzSoundClass81(new Class104(enum40)); FileStream = stream1; _class820 = new Class82(FileStream, int5); _int2 = _class820.method_2(); _long0 = -1L; _class1070 = null; if (!method_0()) { throw new Mp3Exception("Mp3 Decoder: Cannot read header."); } _short0 = (short)_class810.method_2(); _int4 = _class810.method_1(); WaveFormat0 = new WaveFormat(_int4, _short0); _double0 = WaveFormat0.int_0 * WaveFormat0.short_1 / (_int3 / 8.0); _long1 = 0L; if (_class1070 != null && _class1070.method_10()) { _long0 = Convert.ToInt64(_class1070.method_18((int)(FileStream.Length - _int2)) * (WaveFormat0.int_0 * (WaveFormat0.short_1 / 1000.0))); _class830 = _class1070.method_11(); if (_class830 != null && _class830.Int2 == -1) { _class830.Int2 = (int)(FileStream.Length - _int2); } } if (_long0 <= 0L) { _long0 = (long)((FileStream.Length - _int2) * _double0); } }
public Mp3Class(Stream stream1, int int5, Enum4 enum40, int int6) { _class810 = new ZzSoundClass81[int5]; for (var i = 0; i < _class810.Length; i++) { _class810[i] = new ZzSoundClass81(new Class104(enum40)); } FileStream = stream1; _class820 = new Class82(FileStream, int6); _int2 = _class820.method_2(); _long0 = -1L; _class1070 = null; if (!method_0()) { throw new Mp3Exception("Mp3 Decoder: Cannot read header."); } _short0 = 0; for (var j = 0; j < _class810.Length; j++) { _short0 += (short)_class810[j].method_2(); } _int4 = _class810[0].method_1(); WaveFormat0 = new WaveFormat(_int4, _short0); _double0 = WaveFormat0.int_0 * (WaveFormat0.short_1 / _class810.Length) / (_int3 / 8.0); _long1 = 0L; if (_class1070 != null && _class1070.method_10()) { _long0 = Convert.ToInt64(_class1070.method_18((int)(FileStream.Length - _int2) / _class810.Length) * (WaveFormat0.int_0 * (WaveFormat0.short_1 / 1000.0))); } if (_long0 <= 0L) { _long0 = (long)((FileStream.Length - _int2) * _double0); } }
public override bool vmethod_3(Enum4 enum40, Class80 class800, Class80 class801) { if (Int2 != 0 && enum40 != Enum4.Const2) { var float_ = (Float4 * Float5 + Float6) * Float3; class800.method_2(float_, Int0); } return(true); }
public virtual void vmethod_0(Class82 class82_1, zzSoundClass class107_1, Class80 class80_2, Class80 class80_3, Class84 class84_1, Enum4 enum4_1) { this.class82_0 = class82_1; this.class107_0 = class107_1; this.class80_0 = class80_2; this.class80_1 = class80_3; this.class84_0 = class84_1; this.enum4_0 = enum4_1; }
public override bool vmethod_3(Enum4 enum4_0, Class80 class80_0, Class80 class80_1) { if (this.int_2 != 0 && enum4_0 != Enum4.const_2) { float float_ = (this.float_4 * this.float_5 + this.float_6) * this.float_3; class80_0.method_2(float_, this.int_0); } return(true); }
private void OnMessageReceived2(Enum4 enum4_0, IMessageHandler interface37_0) { if (enum4_0 == ((Enum4)1)) { this.RegisterUser(interface37_0.Header.UserID, interface37_0.imethod_0(), interface37_0.Header.GetClientType()); this.heartBeatChecker_0.RegisterOrActivate(interface37_0.Header.UserID); this.emptyUserDisplayer_0.OnMessageReceived(interface37_0.Header.UserID, interface37_0.Header.MessageType); } }
public virtual void vmethod_0(Class82 class821, ZzSoundClass class1071, Class80 class802, Class80 class803, Class84 class841, Enum4 enum41) { Class820 = class821; Class1070 = class1071; Class800 = class802; Class801 = class803; Class840 = class841; Enum40 = enum41; }
public bool imethod_0(IPEndPoint ipendPoint_0, Enum4 enum4_0, IMessageHandler interface37_0) { if ((enum4_0 == ((Enum4)0)) && (interface37_0.Header.MessageType != this.p2PSessionMessageTypeRoom_0.TcpP2PChannelTest)) { return(false); } if (enum4_0 == ((Enum4)0)) { this.object_1.OnConnectionBound(ipendPoint_0, interface37_0.Header.UserID); } return(true); }
public Stream0(Stream stream, System.IO.Compression.Zlib.CompressionMode compressionMode, CompressionLevel level, Enum4 flavor, bool leaveOpen) { this.flushType_0 = FlushType.None; this.stream_0 = stream; this.bool_0 = leaveOpen; this.compressionMode_0 = compressionMode; this.enum4_0 = flavor; this.compressionLevel_0 = level; if (flavor == Enum4.const_2) { this.CRC32 = new CRC32(); } }
public bool imethod_0(IPEndPoint ipendPoint_0, Enum4 enum4_0, IMessageHandler interface37_0) { bool flag; if (enum4_0 != ((Enum4)0)) { return(true); } if (!(flag = ((interface37_0.Header.MessageType == this.int_0) || (interface37_0.Header.MessageType == this.int_1)) || (interface37_0.Header.MessageType == 100))) { string msg = string.Format("First Message Verify failed !Address:{0},Message Type:{1},UserID:{2},ClientType:{3}", new object[] { ipendPoint_0, interface37_0.Header.MessageType, interface37_0.Header.UserID, (int)interface37_0.Header.GetClientType() }); this.emptyAgileLogger_0.LogWithTime(msg); } return(flag); }
public void ReturnsEqualForEnumProperty() { const Enum4 VALUE = Enum4.Something; var obj1 = new TestObject4 { Prop1 = VALUE }; var obj2 = new TestObject4 { Prop1 = VALUE }; var sut = new ObjectComparer(); var result = sut.Compare(obj1, obj2).ToList(); Assert.AreEqual(1, result.Count); CheckComparison(result[0], ComparisonResult.Equal, ".Prop1", VALUE, VALUE); }
public override bool vmethod_3(Enum4 enum40, Class80 class800, Class80 class801) { base.vmethod_3(enum40, class800, class801); if (Int4 != 0 && enum40 != Enum4.Const1) { var num = (Float8 * Float9 + Float10) * Float7; if (enum40 == Enum4.Const0) { class801.method_2(num, Int0); } else { class800.method_2(num, Int0); } } return(true); }
public override bool vmethod_3(Enum4 enum4_0, Class80 class80_0, Class80 class80_1) { base.vmethod_3(enum4_0, class80_0, class80_1); if (this.int_4 != 0 && enum4_0 != Enum4.const_1) { float num = (this.float_8 * this.float_9 + this.float_10) * this.float_7; if (enum4_0 == Enum4.const_0) { class80_1.method_2(num, this.int_0); } else { class80_0.method_2(num, this.int_0); } } return(true); }
public override bool vmethod_3(Enum4 enum40, Class80 class800, Class80 class801) { if (Int2 != 0) { Float4 = Float4 * Float5 + Float6; switch (enum40) { case Enum4.Const0: class800.method_2(Float4 * Float3, Int0); class801.method_2(Float4 * Float7, Int0); break; case Enum4.Const1: class800.method_2(Float4 * Float3, Int0); break; default: class800.method_2(Float4 * Float7, Int0); break; } } return(true); }
public override bool vmethod_3(Enum4 enum4_0, Class80 class80_0, Class80 class80_1) { if (this.int_2 != 0) { this.float_4 = this.float_4 * this.float_5 + this.float_6; switch (enum4_0) { case Enum4.const_0: class80_0.method_2(this.float_4 * this.float_3, this.int_0); class80_1.method_2(this.float_4 * this.float_7, this.int_0); break; case Enum4.const_1: class80_0.method_2(this.float_4 * this.float_3, this.int_0); break; default: class80_0.method_2(this.float_4 * this.float_7, this.int_0); break; } } return(true); }
// Token: 0x06000E82 RID: 3714 // RVA: 0x0004EEF4 File Offset: 0x0004D0F4 public unsafe Stream1(Stream stream_1, Enum4 enum4_0, byte[] byte_0) { uint[] array = new uint[4]; byte* ptr; if (byte_0 != null && byte_0.Length != 0) { fixed (byte* ptr = &byte_0[0]) { } } else { ptr = null; } uint[] array2; uint* ptr2; if ((array2 = array) != null && array2.Length != 0) { fixed (uint* ptr2 = &array2[0]) { } } else { ptr2 = null; } uint* ptr3 = (uint*)ptr; *ptr2 = *ptr3; ptr2[1] = ptr3[1]; ptr2[2] = ptr3[2]; ptr2[3] = ptr3[3]; ptr2 = null; ptr = null; this.method_1(stream_1); this.class29_0.method_0(array, enum4_0); }
public Class104(Enum4 enum4_1) : this(enum4_1, Class105.class105_0) { }
public override bool vmethod_3(Enum4 enum4_0, Class80 class80_0, Class80 class80_1) { if (this.int_2 != 0) { this.float_4 = this.float_4 * this.float_5 + this.float_6; switch (enum4_0) { case Enum4.const_0: class80_0.method_2(this.float_4 * this.float_3, this.int_0); class80_1.method_2(this.float_4 * this.float_7, this.int_0); break; case Enum4.const_1: class80_0.method_2(this.float_4 * this.float_3, this.int_0); break; default: class80_0.method_2(this.float_4 * this.float_7, this.int_0); break; } } return true; }
public Mp3Class(Stream stream1, int int5, Enum4 enum40) : this(stream1, int5, enum40, 4096) { }
public MP3Class(Stream stream_1, int int_5, Enum4 enum4_0) : this(stream_1, int_5, enum4_0, 4096) { }
public void imethod_5(Enum4 enum4_1) { this.enum4_0 = enum4_1; }
public Mp3Stream(Stream stream1, Enum4 enum40) : this(stream1, enum40, 4096) { }
public override bool vmethod_3(Enum4 enum4_0, Class80 class80_0, Class80 class80_1) { if (this.int_6 != 0) { float num = this.float_27[this.int_10]; if (this.float_25[0] == null) { num = (num + this.float_29[0]) * this.float_28[0]; } if (enum4_0 == Enum4.const_0) { float num2 = num; if (this.int_9 <= 4) { num *= this.float_22; num2 *= this.float_30; } else if (this.int_9 <= 8) { num *= this.float_23; num2 *= this.float_31; } else { num *= this.float_24; num2 *= this.float_32; } class80_0.method_2(num, this.int_5); class80_1.method_2(num2, this.int_5); } else if (enum4_0 == Enum4.const_1) { if (this.int_9 <= 4) { num *= this.float_22; } else if (this.int_9 <= 8) { num *= this.float_23; } else { num *= this.float_24; } class80_0.method_2(num, this.int_5); } else { if (this.int_9 <= 4) { num *= this.float_30; } else if (this.int_9 <= 8) { num *= this.float_31; } else { num *= this.float_32; } class80_0.method_2(num, this.int_5); } } return ++this.int_10 == 3; }
public MP3Stream(Stream stream_1, Enum4 enum4_0) : this(stream_1, enum4_0, 4096) { }
public abstract bool vmethod_3(Enum4 enum4_0, Class80 class80_0, Class80 class80_1);
public override bool vmethod_3(Enum4 enum4_0, Class80 class80_0, Class80 class80_1) { base.vmethod_3(enum4_0, class80_0, class80_1); if (this.int_4 != 0 && enum4_0 != Enum4.const_1) { float num = (this.float_8 * this.float_9 + this.float_10) * this.float_7; if (enum4_0 == Enum4.const_0) { class80_1.method_2(num, this.int_0); } else { class80_0.method_2(num, this.int_0); } } return true; }
public Class104(Enum4 enum4_1, Class105 class105_1) { this.enum4_0 = enum4_1; this.class105_0 = class105_1; }
public abstract bool vmethod_3(Enum4 enum40, Class80 class800, Class80 class801);
public override bool vmethod_3(Enum4 enum4_0, Class80 class80_0, Class80 class80_1) { bool result = base.vmethod_3(enum4_0, class80_0, class80_1); if (this.int_11 != 0 && enum4_0 != Enum4.const_1) { float num = this.float_34[this.int_10 - 1]; if (this.float_25[1] == null) { num = (num + this.float_36[0]) * this.float_35[0]; } if (this.int_9 <= 4) { num *= this.float_30; } else if (this.int_9 <= 8) { num *= this.float_31; } else { num *= this.float_32; } if (enum4_0 == Enum4.const_0) { class80_1.method_2(num, this.int_5); } else { class80_0.method_2(num, this.int_5); } } return result; }
public Class104(Enum4 enum41) : this(enum41, Class105.Class1050) { }
public void imethod_13(string string_1) { this.string_0 = string_1; this.enum4_0 = (Enum4)1; }
public Class104(Enum4 enum41, Class105 class1051) { _enum40 = enum41; _class1050 = class1051; }
public Class85(Class82 class82_1, zzSoundClass class107_1, Class80 class80_2, Class80 class80_3, Class84 class84_1, Enum4 enum4_1) : base() { int[] array = new int[1]; this.int_12 = array; int[] array2 = new int[1]; this.int_13 = array2; int[] array3 = new int[1]; this.int_14 = array3; int[] array4 = new int[1]; this.int_15 = array4; this.int_16 = new int[576]; this.float_7 = new float[576]; this.float_8 = new float[18]; this.float_9 = new float[36]; //base..ctor(); Class103.smethod_0(); this.int_2 = new int[580]; this.float_0 = new float[2][,]; this.float_0[0] = new float[32, 18]; this.float_0[1] = new float[32, 18]; this.float_1 = new float[2][,]; this.float_1[0] = new float[32, 18]; this.float_1[1] = new float[32, 18]; this.float_2 = new float[576]; this.float_3 = new float[2, 576]; this.float_4 = new float[2, 576]; this.int_3 = new int[2]; this.class90_0 = new Class85.Class90[2]; this.class90_0[0] = new Class85.Class90(); this.class90_0[1] = new Class85.Class90(); this.class90_1 = this.class90_0; this.class86_0 = new Class85.Class86[9]; int[] array5 = new int[] { 0, 6, 12, 18, 24, 30, 36, 44, 54, 66, 80, 96, 116, 140, 168, 200, 238, 284, 336, 396, 464, 522, 576 }; int[] array6 = new int[] { 0, 4, 8, 12, 18, 24, 32, 42, 56, 74, 100, 132, 174, 192 }; int[] array7 = new int[] { 0, 6, 12, 18, 24, 30, 36, 44, 54, 66, 80, 96, 114, 136, 162, 194, 232, 278, 330, 394, 464, 540, 576 }; int[] array8 = new int[] { 0, 4, 8, 12, 18, 26, 36, 48, 62, 80, 104, 136, 180, 192 }; int[] array9 = new int[] { 0, 6, 12, 18, 24, 30, 36, 44, 54, 66, 80, 96, 116, 140, 168, 200, 238, 284, 336, 396, 464, 522, 576 }; int[] array10 = new int[] { 0, 4, 8, 12, 18, 26, 36, 48, 62, 80, 104, 134, 174, 192 }; int[] array11 = new int[] { 0, 4, 8, 12, 16, 20, 24, 30, 36, 44, 52, 62, 74, 90, 110, 134, 162, 196, 238, 288, 342, 418, 576 }; int[] array12 = new int[] { 0, 4, 8, 12, 16, 22, 30, 40, 52, 66, 84, 106, 136, 192 }; int[] array13 = new int[] { 0, 4, 8, 12, 16, 20, 24, 30, 36, 42, 50, 60, 72, 88, 106, 128, 156, 190, 230, 276, 330, 384, 576 }; int[] array14 = new int[] { 0, 4, 8, 12, 16, 22, 28, 38, 50, 64, 80, 100, 126, 192 }; int[] array15 = new int[] { 0, 4, 8, 12, 16, 20, 24, 30, 36, 44, 54, 66, 82, 102, 126, 156, 194, 240, 296, 364, 448, 550, 576 }; int[] array16 = new int[] { 0, 4, 8, 12, 16, 22, 30, 42, 58, 78, 104, 138, 180, 192 }; int[] array17 = new int[] { 0, 6, 12, 18, 24, 30, 36, 44, 54, 66, 80, 96, 116, 140, 168, 200, 238, 284, 336, 396, 464, 522, 576 }; int[] array18 = new int[] { 0, 4, 8, 12, 18, 26, 36, 48, 62, 80, 104, 134, 174, 192 }; int[] array19 = new int[] { 0, 6, 12, 18, 24, 30, 36, 44, 54, 66, 80, 96, 116, 140, 168, 200, 238, 284, 336, 396, 464, 522, 576 }; int[] array20 = new int[] { 0, 4, 8, 12, 18, 26, 36, 48, 62, 80, 104, 134, 174, 192 }; int[] array21 = new int[] { 0, 12, 24, 36, 48, 60, 72, 88, 108, 132, 160, 192, 232, 280, 336, 400, 476, 566, 568, 570, 572, 574, 576 }; int[] array22 = new int[] { 0, 8, 16, 24, 36, 52, 72, 96, 124, 160, 162, 164, 166, 192 }; this.class86_0[0] = new Class85.Class86(array5, array6); this.class86_0[1] = new Class85.Class86(array7, array8); this.class86_0[2] = new Class85.Class86(array9, array10); this.class86_0[3] = new Class85.Class86(array11, array12); this.class86_0[4] = new Class85.Class86(array13, array14); this.class86_0[5] = new Class85.Class86(array15, array16); this.class86_0[6] = new Class85.Class86(array17, array18); this.class86_0[7] = new Class85.Class86(array19, array20); this.class86_0[8] = new Class85.Class86(array21, array22); if (Class85.int_22 == null) { Class85.int_22 = new int[9][]; for (int i = 0; i < 9; i++) { Class85.int_22[i] = Class85.smethod_1(this.class86_0[i].int_1); } } int[] array23 = new int[] { 0, 6, 11, 16, 21 }; int[] array24 = new int[] { 0, 6, 12 }; this.class91_0 = new Class85.Class91(this, array23, array24); this.int_0 = new int[54]; this.class82_0 = class82_1; this.class107_0 = class107_1; this.class80_0 = class80_2; this.class80_1 = class80_3; this.class84_0 = class84_1; this.enum4_0 = enum4_1; this.int_5 = 0; this.int_7 = ((this.class107_0.method_8() == Enum5.const_3) ? 1 : 2); this.int_4 = ((this.class107_0.method_3() == Enum3.const_1) ? 2 : 1); this.int_10 = this.class107_0.method_6() + ((this.class107_0.method_3() == Enum3.const_1) ? 3 : ((this.class107_0.method_3() == Enum3.const_2) ? 6 : 0)); if (this.int_7 == 2) { switch (this.enum4_0) { case Enum4.const_0: IL_4E3: this.int_8 = 0; this.int_9 = 1; goto IL_521; case Enum4.const_1: case Enum4.const_3: this.int_9 = 0; this.int_8 = 0; goto IL_521; case Enum4.const_2: this.int_9 = 1; this.int_8 = 1; goto IL_521; } // goto IL_4E3 this.int_8 = 0; this.int_9 = 1; goto IL_521; } this.int_9 = 0; this.int_8 = 0; IL_521: Array.Clear(this.float_3, 0, 1152); int[] arg_54B_0 = this.int_3; int arg_54B_1 = 0; this.int_3[1] = 576; arg_54B_0[arg_54B_1] = 576; this.class102_0 = new Class102(); this.class89_0 = new Class85.Class89(); }
private d0 method_3(Enum4 enum4_0, params object[] object_0) { return(aclient_0.Do((byte)enum4_0, object_0)); }
public override bool vmethod_3(Enum4 enum4_0, Class80 class80_0, Class80 class80_1) { if (this.int_2 != 0 && enum4_0 != Enum4.const_2) { float float_ = (this.float_4 * this.float_5 + this.float_6) * this.float_3; class80_0.method_2(float_, this.int_0); } return true; }