private void method_20(DxfWriter w) { Interface30 binaryDataReader = Class444.Create(w.Version, this.stream_0); binaryDataReader.imethod_4(0L); Interface30 stringDataReader = (Interface30)null; if (this.stream_1 != null) { stringDataReader = Class444.Create(w.Version, this.stream_1); stringDataReader.imethod_4(0L); } DxfProxyEntity.Class362 class362 = new DxfProxyEntity.Class362(this.dwgVersion_0, this.long_0, binaryDataReader, this.uint_0, stringDataReader, this.list_0); while (!class362.IsAtEndOfStream) { Struct18 group = class362.method_0(); w.Write(group); } }
internal override void Write(Class432 ow) { base.Write(ow); Interface29 objectWriter = ow.ObjectWriter; if (ow.Version > DxfVersion.Dxf14) { objectWriter.imethod_33(this.dxfClass_0 == null ? 0 : (int)this.dxfClass_0.ClassNumber); if (ow.Version > DxfVersion.Dxf15) { objectWriter.imethod_4("cn:" + (this.dxfClass_0 == null ? string.Empty : this.dxfClass_0.CPlusPlusClassName)); } objectWriter.imethod_33((int)(this.dwgVersion_0 | (DwgVersion)((int)this.short_1 << 16))); objectWriter.imethod_14(this.bool_2); if (this.bool_2) { objectWriter.imethod_33(this.dxfClass_0 == null ? 0 : (int)this.dxfClass_0.ItemClassId); objectWriter.imethod_33(this.dxfClass_0 == null ? 0 : (int)this.dxfClass_0.ClassNumber); } } else { objectWriter.imethod_33(this.dxfClass_0 == null ? 0 : (int)this.dxfClass_0.ItemClassId); objectWriter.imethod_33(this.dxfClass_0 == null ? 0 : (int)this.dxfClass_0.ClassNumber); } Interface30 binaryDataReader = Class444.Create(ow.Version, this.stream_0); binaryDataReader.imethod_4(0L); Interface30 stringDataReader = (Interface30)null; if (this.stream_1 != null) { stringDataReader = Class444.Create(ow.Version, this.stream_1); stringDataReader.imethod_4(0L); } if (this.bool_2 && this.method_23(ow.Version)) { DxfProxyEntity.Class362 class362 = new DxfProxyEntity.Class362(this.dwgVersion_0, this.long_0, binaryDataReader, this.uint_0, stringDataReader, this.list_0); DxfProxyEntity.Class361 class361 = new DxfProxyEntity.Class361(ow.ObjectWriter); while (!class362.IsAtEndOfStream) { class361.imethod_0(class362.method_0()); } } else { this.method_14(ow.ObjectWriter, this.stream_0, this.long_0); if (ow.Version > DxfVersion.Dxf18) { if (stringDataReader != null && this.uint_0 > 0U) { this.method_14((Interface29)((Class990)ow.ObjectWriter).StringBitStreamWriter, this.stream_1, (long)this.uint_0); } } else { this.method_15(ow.ObjectWriter); } } foreach (DxfTypedObjectReference typedObjectReference in this.list_0) { objectWriter.imethod_42(typedObjectReference.ReferenceType, (DxfHandledObject)typedObjectReference.ObjectReference.Value); } }