예제 #1
0
        private void method_1()
        {
            int position = (int)Class745.smethod_0(this.int_0);

            this.class723_0 = this.method_2(new int?(0), ref position, this.memoryStream_0);
            this.class723_3 = this.method_2(new int?(), ref position, this.memoryStream_4);
            this.class723_1 = this.method_2(new int?(1), ref position, this.memoryStream_1);
            this.class723_2 = this.method_2(new int?(4), ref position, this.memoryStream_2);
            this.class723_4 = this.method_2(new int?(), ref position, this.memoryStream_5);
            this.class723_5 = this.method_2(new int?(2), ref position, this.memoryStream_6);
            this.class723_6 = this.method_2(new int?(), ref position, this.memoryStream_7);
        }
예제 #2
0
        public void Write()
        {
            Class1030 knownClasses = new Class1030(this.dxfModel_0);

            this.method_0();
            this.method_4();
            this.method_5();
            this.method_6();
            this.method_7();
            this.method_8(knownClasses);
            this.method_9((int)(Class745.smethod_0(this.int_0) + this.memoryStream_4.Length + this.memoryStream_0.Length + this.memoryStream_1.Length + this.memoryStream_2.Length));
            this.method_1();
            this.method_3();
            this.method_10();
            this.method_13();
            this.stream_0.Flush();
        }
예제 #3
0
        private void method_10()
        {
            int          sectionStartPosition1 = (int)Class745.smethod_0(this.int_0);
            int          num1 = sectionStartPosition1 + (int)this.memoryStream_0.Length;
            int          sectionStartPosition2 = num1 + (int)this.memoryStream_4.Length;
            int          sectionStartPosition3 = sectionStartPosition2 + (int)this.memoryStream_1.Length;
            int          sectionStartPosition4 = sectionStartPosition3 + (int)this.memoryStream_2.Length + (int)this.memoryStream_5.Length;
            MemoryStream memoryStream          = new MemoryStream();
            Interface29  streamWriter          = Class724.Create(this.dxfVersion_0, (Stream)memoryStream, this.encoding_0);

            streamWriter.imethod_13(Encodings.Ascii.GetBytes(this.dxfModel_0.Header.AcadVersionString), 0, 6);
            Interface29 nterface29 = streamWriter;

            byte[] numArray = new byte[7];
            numArray[5] = (byte)15;
            numArray[6] = (byte)1;
            byte[] bytes = numArray;
            nterface29.imethod_12(bytes);
            streamWriter.imethod_19(num1);
            streamWriter.imethod_11((byte)0);
            streamWriter.imethod_11((byte)0);
            int num2 = (int)Class952.smethod_1(this.dxfModel_0.Header.DrawingCodePage);

            streamWriter.imethod_13(LittleEndianBitConverter.GetBytes((short)num2), 0, 2);
            streamWriter.imethod_13(LittleEndianBitConverter.GetBytes(this.int_0), 0, 4);
            long position = this.stream_0.Position;

            this.method_11(streamWriter, (byte)0, sectionStartPosition1, (int)this.memoryStream_0.Length);
            this.method_11(streamWriter, (byte)1, sectionStartPosition2, (int)this.memoryStream_1.Length);
            this.method_11(streamWriter, (byte)2, sectionStartPosition4, (int)this.memoryStream_6.Length);
            this.method_11(streamWriter, (byte)3, 0, 0);
            this.method_11(streamWriter, (byte)4, sectionStartPosition3, (int)this.memoryStream_2.Length);
            streamWriter.Flush();
            Stream1 stream1 = new Stream1(this.stream_0, (ushort)49345);

            stream1.Write(memoryStream.GetBuffer(), 0, (int)memoryStream.Length);
            Class1045.smethod_6(this.stream_0, stream1.Crc);
            this.stream_0.Write(Class800.byte_4, 0, Class800.byte_4.Length);
        }