Esempio n. 1
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;
        }
Esempio n. 2
0
 private ulong method_19(int pageCount)
 {
     return(Class996.smethod_2((ulong)(pageCount + 5) * 16UL));
 }