internal void method_8() { MemoryStream stream = base.method_4(); BinaryWriter writer = new BinaryWriter(this.stream_0, Encoding.Unicode); uint num = Class967.smethod_1(this.stream_0.Position, true); int num2 = base.method_2(); int num3 = Class567.smethod_4((long)num2, 0x80); num3 = Class567.smethod_4((long)(num2 + num3), 0x80); this.stream_0.Write(stream.GetBuffer(), 0, (int)stream.Length); for (int i = 0; i < num3; i++) { writer.Write((uint)0xfffffffd); } int num8 = Class567.smethod_4((long)(num2 + num3), 0x80); if (num8 > 0x6d) { int num7 = Class567.smethod_4((long)(num8 - 0x6d), 0x7f); for (int j = 0; j < num7; j++) { writer.Write((uint)0xfffffffd); } for (int k = 0; k < num7; k++) { writer.Write((uint)0xfffffffc); } num8 = Class567.smethod_4((long)((num2 + num3) + num7), 0x80); } this.class522_0.int_6 = num8; Class967.smethod_2(writer); Class523.smethod_1(this.stream_0, num, num8, this.class522_0); }
private uint method_7(Stream A_0, bool A_1, out int A_2) { bool flag; A_2 = 0; if (A_0.Length == 0L) { return(0xfffffffe); } Class916 class2 = (flag = this.class522_0.method_2(A_0.Length) || A_1) ? this.class917_0 : this.class916_0; Stream stream = flag ? this.stream_0 : this.memoryStream_0; int num3 = flag ? 0x200 : 0x40; uint num = Class967.smethod_1(stream.Position, flag); A_0.Position = 0L; Class567.smethod_8(A_0, stream); Class567.smethod_6(stream, num3); A_2 = Class567.smethod_4(A_0.Length, num3); for (uint i = 1; i < ((long)A_2); i++) { class2.method_5(num + i); } class2.method_5(0xfffffffe); return(num); }