private void method_20(Class1132 A_0, string A_1) { int num = 9; if (A_0 == null) { throw new ArgumentNullException(BookmarkStart.b("䤮䈰", num)); } this.class1132_0 = A_0; BinaryReader reader = new BinaryReader(this.class1132_0.method_0().method_5(BookmarkStart.b("砮帰䄲儴猶嘸堺䠼刾⑀ⵂㅄ", num)), Class813.smethod_0(true)); this.class703_0 = new Class703(reader); if (this.class703_0.method_1()) { throw new NotSupportedException(BookmarkStart.b("笮夰娲䘴᜶崸吺帼䨾ⱀ♂⭄㍆楈≊㹌潎㽐㱒⅔睖⩘⹚ⵜ⽞ᅢᅤɦ൨䕪", num)); } if (this.class703_0.bool_4) { if (A_1 == null) { throw new PasswordErrorException(BookmarkStart.b("欮帰倲䀴娶尸唺䤼Ἶ⡀あ敄≆❈⡊㽌㙎⅐❒ご㍖畘筚ቜ⽞Ѡൢ䕤፦Ũ䵬Ὦၰrٴvᙸॺ彾愈ꮊﶌレ뎜", num)); } new Class987().method_1(this.class1132_0, this.class703_0, A_1); } Stream input = this.class1132_0.method_0().method_5(BookmarkStart.b("砮帰䄲儴猶嘸堺䠼刾⑀ⵂㅄ", num)); this.binaryReader_0 = new BinaryReader(input, Class813.smethod_0(true)); this.binaryReader_1 = new BinaryReader(input, Class813.smethod_0(false)); this.class703_0.method_3(this.binaryReader_0); Stream stream2 = this.class1132_0.method_0().method_5(this.class703_0.method_0()); this.binaryReader_2 = new BinaryReader(stream2, Encoding.Unicode); Stream stream3 = this.class1132_0.method_0().method_4(BookmarkStart.b("欮倰䜲吴", num)); this.binaryReader_3 = (stream3 != null) ? new BinaryReader(stream3, Encoding.Unicode) : null; this.class770_0 = new Class770(this.method_5(), this.method_3()); this.class160_0 = new Class160(this.method_5(), this.method_1(), this.method_3()); this.method_26(); this.method_27(); this.class598_0 = new Class598(this.method_5(), this.method_3()); this.class165_0 = new Class165(this.method_5(), this.method_3(), this.class160_0.method_4()); this.class348_0 = new Class348(SubDocumentType.Main, this.method_5(), this.method_3()); this.class348_1 = new Class348(SubDocumentType.Header, this.method_5(), this.method_3()); this.class996_0 = new Class996(this.method_5(), this.method_3()); this.class700_0 = new Class700(FootnoteType.Footnote, this.method_5(), this.method_3()); this.class700_1 = new Class700(FootnoteType.Endnote, this.method_5(), this.method_3()); this.class1065_0 = new Class1065(this.method_5(), this.method_3()); this.class168_0 = new Class168(this.method_5(), this.method_3()); this.class349_0 = new Class349(this.method_5(), this.method_3()); this.class986_0 = new Class986(this.method_5(), this.method_3()); this.method_21(); }
internal void method_2(Class996 A_0, int A_1) { for (int i = 0; i < A_0.class147_0.method_4(); i++) { int num4 = A_0.method_3(i); Class995 class3 = A_0.method_5(i); this.method_7(A_1 + num4, class3.method_0(), class3.method_3()); } for (int j = 0; j < A_0.class147_1.method_4(); j++) { int num3 = A_0.method_4(j); this.method_8(A_1 + num3, A_0.method_6(j).method_0()); } }
private void method_5(int A_0) { Class996 class2 = this.class764_0.method_9(); this.class132_0.method_0(this.class764_0, class2.method_13(), A_0); this.class136_0.method_0(this.class764_0, class2.method_14(), A_0); Class168 class3 = this.class764_0.method_16(); this.class135_0.method_0(this.class764_0, class3.method_21(), A_0); this.class133_0.method_0(this.class764_0, class3.method_22(), A_0); Class1065 class4 = this.class764_0.method_12(); this.class131_0.method_0(this.class764_0, class4.method_11(), A_0); this.class134_0.method_0(this.class764_0, class4.method_12(), A_0); Class700 class5 = this.class764_0.method_10(); Class700 class6 = this.class764_0.method_11(); this.class130_0.method_0(this.class764_0, class5.method_6(), A_0); this.class130_1.method_0(this.class764_0, class6.method_6(), A_0); this.class129_0.method_0(this.class764_0, this.class764_0.method_18().method_6(), A_0); }
private void method_16() { MemoryStream sectionStream = new MemoryStream(); Class889 byteStream = Class889.Create((Stream)sectionStream, this.dxfVersion_0, this.encoding_0); foreach (Class504 section in this.list_0) { if (section.DataSize != 0UL) { this.method_17(section, byteStream); } } if (this.dxfVersion_0 == DxfVersion.Dxf21) { this.method_17(new Class504() { HashCode = 0UL, MaxDecompressedPageSize = 63488UL, Encrypted = 0UL, Encoding = 4UL }, byteStream); } Class442 page = new Class442(); ulong pageSize = Class996.smethod_2((ulong)sectionStream.Length); byte[] pageData; this.method_20(page, sectionStream, this.class954_0.SectionsMapCrcSeed, pageSize, out pageData); Class442 class442 = (Class442)page.Clone(); this.method_23((Class441)page, pageData, 0, pageData.Length); this.method_23((Class441)class442, pageData, 0, pageData.Length); this.class954_0.SectionsMapDataRepeatCount = page.DataRepeatCount; this.class954_0.SectionsMapSizeCompressed = page.CompressedSize; this.class954_0.SectionsMapSizeDecompressed = page.DecompressedSize; this.class954_0.SectionsMapCrcCompressed = page.CompressedCrc; this.class954_0.SectionsMapCrcDecompressed = page.DecompressedCrc; this.class954_0.SectionsMapId = (ulong)page.Id; this.class954_0.SectionsMap2Id = (ulong)class442.Id; }
private unsafe void method_22( Class504 section, byte[] buffer, ulong position, ulong uncompressedLength) { Class443 class443 = new Class443(); class443.PageSize = section.MaxDecompressedPageSize; class443.DataOffset = position; class443.DecompressedSize = uncompressedLength; class443.CheckSum = (ulong)Class996.smethod_3((ulong)this.uint_0, buffer, (uint)position, (uint)uncompressedLength); Class746 class7461 = Class746.class746_1; MemoryStream memoryStream = new MemoryStream(); if (section.Compressed) { new Class955().method_1(buffer, (int)position, (int)uncompressedLength, (Stream)memoryStream); if (memoryStream.Length >= (long)uncompressedLength) { memoryStream = new MemoryStream(); memoryStream.Write(buffer, (int)position, (int)uncompressedLength); } } else { memoryStream.Write(buffer, (int)position, (int)uncompressedLength); } class443.CompressedSize = (ulong)memoryStream.Length; class443.Crc = Class656.class656_1.method_0(memoryStream.GetBuffer(), 0U, (uint)memoryStream.Length, Class656.smethod_0((ulong)this.uint_0, (uint)memoryStream.Length)); ulong num1 = (ulong)(memoryStream.Length + 8L - 1L & -8L); int num2 = (int)((ulong)((long)num1 + (long)class7461.K - 1L) / (ulong)class7461.K); byte[] data; if (section.Encoding == 4UL) { data = new byte[(long)num2 * (long)class7461.N]; int num3 = (int)((long)num1 - memoryStream.Length); for (int index = 0; index < num3; ++index) { memoryStream.WriteByte((byte)0); fixed(byte *destination = data) fixed(byte *source = memoryStream.GetBuffer()) this.method_28(destination, source, (int)memoryStream.Length, class7461); } else { if (section.Encoding != 1UL) { throw new Exception(); } uint num3 = (uint)(num1 - (ulong)memoryStream.Length); for (uint index = 0; index < num3; ++index) { memoryStream.WriteByte((byte)0); } data = new byte[num1 + (ulong)num2 * (ulong)(class7461.N - class7461.K)]; fixed(byte *dataBufferPtr = data) fixed(byte *sourcePtr = memoryStream.GetBuffer()) this.method_26(dataBufferPtr, dataBufferPtr + num1, sourcePtr, (int)memoryStream.Length, class7461); } this.method_23((Class441)class443, data, 0, data.Length); if (class443.Id > 0L) { ++section.PageCount; } section.Pages.Add(class443); }
private ulong method_19(int pageCount) { return(Class996.smethod_2((ulong)(pageCount + 5) * 16UL)); }
public Class998(Class996 A_0) { this.class996_0 = A_0; }