Exemple #1
0
        private void method_17(Class504 section, Class889 byteStream)
        {
            byteStream.vmethod_15(section.DataSize);
            byteStream.vmethod_15(section.MaxDecompressedPageSize);
            byteStream.vmethod_15(section.Encrypted);
            byteStream.vmethod_15(section.HashCode);
            ulong num = (ulong)section.Name.Length;

            if (num > 0UL)
            {
                num = (ulong)((long)num + 1L << 1);
            }
            byteStream.vmethod_15(num);
            byteStream.vmethod_15(section.Unknown);
            byteStream.vmethod_15(section.Encoding);
            byteStream.vmethod_15(section.PageCount);
            if (num > 0UL)
            {
                byte[] bytes = Encoding.Unicode.GetBytes(section.Name);
                byteStream.Stream.Write(bytes, 0, bytes.Length);
                byteStream.vmethod_1((byte)0);
                byteStream.vmethod_1((byte)0);
            }
            foreach (Class443 page in section.Pages)
            {
                byteStream.vmethod_15(page.DataOffset);
                byteStream.vmethod_15(page.PageSize);
                byteStream.vmethod_13(page.Id);
                byteStream.vmethod_15(page.DecompressedSize);
                byteStream.vmethod_15(page.CompressedSize);
                byteStream.vmethod_15(page.CheckSum);
                byteStream.vmethod_15(page.Crc);
            }
        }
Exemple #2
0
 public static void Write(
     Class889 stream,
     DxfModel model,
     uint estimatedObjectCount,
     uint objectsSectionStreamOffset)
 {
     stream.vmethod_9(0);
     stream.vmethod_11(estimatedObjectCount);
     if (model.Header.AcadVersion >= DxfVersion.Dxf15)
     {
         stream.vmethod_27(model.Header.UpdateUtcDateTime);
     }
     else
     {
         stream.vmethod_27(model.Header.UpdateDateTime);
     }
     stream.vmethod_11(objectsSectionStreamOffset);
     stream.vmethod_1((byte)4);
     stream.vmethod_11(50U);
     stream.vmethod_11(0U);
     stream.vmethod_11(100U);
     stream.vmethod_11(0U);
     stream.vmethod_11(512U);
     stream.vmethod_11(0U);
     stream.vmethod_11(uint.MaxValue);
     stream.vmethod_11(0U);
 }