private void method_1() { Class889 class889 = Class889.Create(this.stream_0, this.dxfVersion_0, this.encoding_0); this.class564_0.Header2Offset = (ulong)this.stream_0.Position; MemoryStream fileHeaderDataStream = new MemoryStream(); this.method_2(fileHeaderDataStream); this.stream_0.Write(fileHeaderDataStream.GetBuffer(), 0, (int)fileHeaderDataStream.Length); this.stream_0.Position = 0L; this.stream_0.Write(Encodings.Ascii.GetBytes(this.dxfModel_0.Header.AcadVersionString), 0, 6); this.stream_0.Write(new byte[5], 0, 5); if (this.dxfModel_0.Header.AcadVersion == DxfVersion.Dxf18 && this.dxfModel_0.Header.AcadMaintenanceVersion == 1) { throw new DxfException("Header.AcadMaintenanceVersion may not be 1 for R18 files."); } this.stream_0.WriteByte((byte)this.dxfModel_0.Header.AcadMaintenanceVersion); this.stream_0.WriteByte((byte)3); class889.vmethod_11((uint)this.class617_5.Pages[0].StreamOffset + 32U); this.stream_0.WriteByte((byte)Class885.smethod_3(DxfVersion.Dxf27)); this.stream_0.WriteByte((byte)8); ushort num = Class952.smethod_1(this.dxfModel_0.Header.DrawingCodePage); class889.vmethod_7(num); this.stream_0.Write(new byte[3], 0, 3); class889.vmethod_9((int)this.dxfModel_0.SecurityFlags); class889.vmethod_9(0); class889.vmethod_11((uint)this.class617_1.Pages[0].StreamOffset + 32U); class889.vmethod_11(0U); class889.vmethod_9(128); class889.vmethod_11((uint)this.class617_6.Pages[0].StreamOffset + 32U); this.stream_0.Write(new byte[80], 0, 80); this.stream_0.Write(fileHeaderDataStream.GetBuffer(), 0, (int)fileHeaderDataStream.Length); this.stream_0.Write(Class998.byte_0, 236, 20); }
private void method_2() { Class889 class889 = Class889.Create(this.stream_0, this.dxfVersion_0, this.encoding_0); this.stream_0.Position = 0L; this.stream_0.Write(Encodings.Ascii.GetBytes(this.dxfModel_0.Header.AcadVersionString), 0, 6); this.stream_0.Write(new byte[5], 0, 5); int maintenanceVersion = this.dxfModel_0.Header.AcadMaintenanceVersion; this.stream_0.WriteByte((byte)this.dxfModel_0.Header.AcadMaintenanceVersion); this.stream_0.WriteByte((byte)3); class889.vmethod_11((uint)this.class504_2.Pages[0].StreamOffset + 1152U); this.stream_0.WriteByte((byte)Class885.smethod_3(DxfVersion.Dxf27)); this.stream_0.WriteByte((byte)8); ushort num = Class952.smethod_1(this.dxfModel_0.Header.DrawingCodePage); class889.vmethod_7(num); this.stream_0.Write(new byte[3], 0, 3); class889.vmethod_9((int)this.dxfModel_0.SecurityFlags); class889.vmethod_9(0); class889.vmethod_11((uint)this.class504_3.Pages[0].StreamOffset + 1152U); class889.vmethod_11(0U); class889.vmethod_9(128); class889.vmethod_11((uint)this.class504_1.Pages[0].StreamOffset + 1152U); for (int index = 0; index < 80; ++index) { this.stream_0.WriteByte((byte)0); } }
public static void Write(Class889 byteStream, SummaryInfo summaryInfo) { byteStream.vmethod_19(summaryInfo.Title); byteStream.vmethod_19(summaryInfo.Subject); byteStream.vmethod_19(summaryInfo.Author); byteStream.vmethod_19(summaryInfo.Keywords); byteStream.vmethod_19(summaryInfo.Comments); byteStream.vmethod_19(summaryInfo.LastSavedBy); byteStream.vmethod_19(summaryInfo.RevisionNumber); byteStream.vmethod_19(summaryInfo.HyperLinkBase); byteStream.vmethod_25(summaryInfo.TotalEditingTime); byteStream.vmethod_27(summaryInfo.CreationDateTime); byteStream.vmethod_27(summaryInfo.ModifiedDateTime); byteStream.vmethod_7((ushort)summaryInfo.Properties.Count); foreach (SummaryInfo.Property property in summaryInfo.Properties) { byteStream.vmethod_19(property.Name); byteStream.vmethod_19(property.Value); } byteStream.vmethod_9(0); byteStream.vmethod_9(0); }
public static void Write(Class889 stream, DxfModel model) { stream.vmethod_5((short)0); stream.vmethod_7((ushort)model.Header.MeasurementUnits); }