internal override void vmethod_11(Class434 or, Class285 entityBuilder, long imageSize) { PagedMemoryStream targetStream = new PagedMemoryStream((long)(int)imageSize, System.Math.Min((int)imageSize, 65536)); or.ObjectBitStream.imethod_20((int)imageSize, targetStream); this.proxyGraphics_0 = new ProxyGraphics(); ((DxfProxyEntity.Class287)entityBuilder).ProxyGraphicsBuilder = this.proxyGraphics_0.Read((Stream)targetStream, or.Builder); }
public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext) { base.CopyFrom(from, cloneContext); DxfUnknownEntity dxfUnknownEntity = (DxfUnknownEntity)from; if (dxfUnknownEntity.proxyGraphics_0 == null) { this.proxyGraphics_0 = (ProxyGraphics)null; } else { this.proxyGraphics_0 = (ProxyGraphics)dxfUnknownEntity.proxyGraphics_0.Clone(cloneContext); } }
internal override void Read(DxfReader r, Class259 objectBuilder) { base.Read(r, objectBuilder); Class285 class285 = (Class285)objectBuilder; Interface30 binaryDataReader = (Interface30)null; Interface30 stringDataReader = (Interface30)null; Stream currentStream = (Stream)null; long graphicsDataSizeInBytes = 0; PagedMemoryStream graphicsData = (PagedMemoryStream)null; r.method_85(); while (r.CurrentGroup.Code != 0) { if (r.CurrentGroup.Code == 100) { switch ((string)r.CurrentGroup.Value) { case "AcDbZombieEntity": case "AcDbProxyEntity": this.method_16(r, class285, ref binaryDataReader, ref stringDataReader, ref graphicsDataSizeInBytes, ref graphicsData, ref currentStream); continue; case "AcDbEntity": this.method_8(r, class285); continue; default: if (this.bool_2) { this.method_18(r, objectBuilder); continue; } continue; } } else { this.method_9(r, class285); } } this.method_13(r.ModelBuilder.Version); if (graphicsData == null) { return; } this.proxyGraphics_0 = new ProxyGraphics(); ((DxfProxyEntity.Class287)class285).ProxyGraphicsBuilder = this.proxyGraphics_0.Read((Stream)graphicsData, (Class374)r.ModelBuilder); }
public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext) { base.CopyFrom(from, cloneContext); DxfProxyEntity dxfProxyEntity = (DxfProxyEntity)from; this.dxfClass_0 = dxfProxyEntity.dxfClass_0 != null?Class906.smethod_9(cloneContext, dxfProxyEntity.dxfClass_0) : (DxfClass)null; this.proxyGraphics_0 = dxfProxyEntity.proxyGraphics_0 != null ? (ProxyGraphics)dxfProxyEntity.proxyGraphics_0.Clone(cloneContext) : (ProxyGraphics)null; this.dwgVersion_0 = dxfProxyEntity.dwgVersion_0; this.short_1 = dxfProxyEntity.short_1; this.bool_2 = dxfProxyEntity.bool_2; this.long_0 = dxfProxyEntity.long_0; if (dxfProxyEntity.stream_0 == null) { this.stream_0 = (Stream)null; } else { long position = dxfProxyEntity.stream_0.Position; dxfProxyEntity.stream_0.Position = 0L; this.stream_0 = (Stream) new PagedMemoryStream(dxfProxyEntity.stream_0, (long)(int)dxfProxyEntity.stream_0.Length); dxfProxyEntity.stream_0.Position = position; } this.uint_0 = dxfProxyEntity.uint_0; if (dxfProxyEntity.stream_1 == null) { this.stream_1 = (Stream)null; } else { long position = dxfProxyEntity.stream_1.Position; dxfProxyEntity.stream_1.Position = 0L; this.stream_1 = (Stream) new PagedMemoryStream(dxfProxyEntity.stream_1, (long)(int)dxfProxyEntity.stream_1.Length); dxfProxyEntity.stream_1.Position = position; } this.list_0.Clear(); foreach (DxfTypedObjectReference typedObjectReference in dxfProxyEntity.list_0) { if (typedObjectReference.ObjectReference.Value == null) { this.list_0.Add(new DxfTypedObjectReference(typedObjectReference.ReferenceType, DxfObjectReference.Null)); } else { this.list_0.Add(new DxfTypedObjectReference(typedObjectReference.ReferenceType, cloneContext.CloneReference((DxfHandledObject)typedObjectReference.ObjectReference.Value).Reference)); } } }