// Token: 0x060020A6 RID: 8358 RVA: 0x0006DCD8 File Offset: 0x0006BED8 public static void smethod_2(Class321 pd, BinaryWriter write_stream, uint offset_orig, uint offset_new, Stream stream_orig, Stream stream_new) { using (Stream3 stream = new Stream3(stream_orig)) { using (Stream3 stream2 = new Stream3(stream_new)) { uint num; uint num2; Class132.smethod_3(stream, out num, out num2); uint num3; uint num4; Class132.smethod_3(stream2, out num3, out num4); using (Stream3 stream3 = new Stream3(stream, 0L, (long)((ulong)num))) { using (Stream3 stream4 = new Stream3(stream2, 0L, (long)((ulong)num3))) { Class292.smethod_12(pd, Enum81.const_0, write_stream, offset_orig, offset_new, stream3, stream4); } } using (Stream3 stream5 = new Stream3(stream, (long)((ulong)num), (long)((ulong)(num + num2)))) { using (Stream3 stream6 = new Stream3(stream2, (long)((ulong)num3), (long)((ulong)(num3 + num4)))) { Class136.smethod_0(pd, write_stream, offset_orig + num, offset_new + num3, stream5, stream6); } } } } }
// Token: 0x06001E44 RID: 7748 RVA: 0x00062274 File Offset: 0x00060474 public static void smethod_12(Class321 pd, Enum81 type, BinaryWriter write_stream, uint offset_orig, uint offset_new, Stream stream_orig, Stream stream_new) { switch (type) { case Enum81.const_1: if (!Class136.smethod_3(stream_orig, stream_new)) { type = Enum81.const_0; } break; case Enum81.const_2: if (!Class132.smethod_1(stream_orig, stream_new)) { type = Enum81.const_0; } break; } switch (type) { case Enum81.const_1: Class136.smethod_0(pd, write_stream, offset_orig, offset_new, stream_orig, stream_new); return; case Enum81.const_2: Class132.smethod_2(pd, write_stream, offset_orig, offset_new, stream_orig, stream_new); return; default: Class292.smethod_11(pd, write_stream, offset_orig, stream_orig, stream_new); return; } }
// Token: 0x06000653 RID: 1619 RVA: 0x00035E5C File Offset: 0x0003405C private Class47 method_10(bool bool_2) { if (!this.bool_0) { bool flag = this.bool_1 || this.symmetricAlgorithm_0 == null; if (this.symmetricAlgorithm_0 == null) { this.symmetricAlgorithm_0 = Class136.smethod_0(); if (this.symmetricAlgorithm_0 == null) { this.bool_0 = true; } } if (this.symmetricAlgorithm_0 != null) { if (flag) { this.symmetricAlgorithm_0.Key = this.method_4(); this.symmetricAlgorithm_0.IV = this.method_6(); this.symmetricAlgorithm_0.Mode = Class136.smethod_1(this.method_0()); this.symmetricAlgorithm_0.Padding = Class136.smethod_2(this.method_2()); } return(new Class48(bool_2 ? this.symmetricAlgorithm_0.CreateEncryptor() : this.symmetricAlgorithm_0.CreateDecryptor())); } } Class92 interface6_ = new Class92(new Class135()); Class65 @class; if (this.method_2() != (Enum1)1) { @class = new Class66(interface6_, Class136.smethod_3(this.method_2())); } else { @class = new Class65(interface6_); } Class95 interface1_ = new Class95(new Class19(this.method_4()), this.method_6()); @class.imethod_1(bool_2, interface1_); return(new Class49(@class)); }
public override IMessageHandler imethod_3 <TBody>(string string_0, int int_1, TBody body, string string_1, int int_2) where TBody : class { byte[] buffer = null; if (body != null) { BaseSerializeContract contract = body as BaseSerializeContract; if (contract != null) { buffer = contract.ToStream(); } else { buffer = (this.method_1(typeof(TBody)) == SerializeStrategy.Property) ? CompactPropertySerializer.Default.Serialize <TBody>(body) : Class136.smethod_0().Serialize <TBody>(body); } } return(new MessageHandler(new Class41(string_0, int_1, (buffer == null) ? 0 : buffer.Length, string_1, int_2), buffer, 0, null)); }
public override TBody imethod_1 <TBody>(IMessageHandler interface37_0) where TBody : class//, new() { MessageHandler class2 = (MessageHandler)interface37_0; if (class2.method_0().imethod_5() == 0) { return(default(TBody)); } Type type = typeof(TBody); if (type.IsSubclassOf(this.type_0)) { return(BaseSerializeContract.smethod_0 <TBody>(class2)); } return((this.method_1(type) == SerializeStrategy.Property) ? CompactPropertySerializer.Default.Deserialize <TBody>(class2.Body.Data, class2.Body.Offset) : Class136.smethod_0().Deserialize <TBody>(class2.Body.Data, class2.Body.Offset)); }