Ejemplo n.º 1
0
            internal override void Read(Class741.Class742 serializer)
            {
                base.Read(serializer);
                Class889 stream = serializer.Stream;
                int      num    = stream.vmethod_8();

                stream.vmethod_8();
                this.list_0.Capacity = num;
                for (int index = 0; index < num; ++index)
                {
                    Class49.Class54.Class64 class64 = new Class49.Class54.Class64();
                    class64.Read(stream);
                    this.list_0.Add(class64);
                }
            }
Ejemplo n.º 2
0
 public void Write(Class889 w)
 {
     w.vmethod_11(3138415537U);
     w.vmethod_15(this.ulong_0);
     w.vmethod_11(this.uint_0);
     w.vmethod_11((uint)(32 + this.list_0.Count * 8));
     w.vmethod_11(this.uint_1);
     w.vmethod_11(this.uint_2);
     w.vmethod_11(0U);
     w.vmethod_11(0U);
     for (int index = 0; (long)index < (long)this.uint_0; ++index)
     {
         this.list_0[index].Write(w);
     }
 }
Ejemplo n.º 3
0
        public static void Read(Class889 stream)
        {
            int num1 = (int)stream.vmethod_0();
            int num2 = (int)stream.vmethod_0();
            int num3 = (int)stream.vmethod_0();
            int num4 = (int)stream.vmethod_4();
            int num5 = (int)stream.vmethod_4();

            stream.vmethod_8();
            stream.vmethod_8();
            int num6 = (int)stream.vmethod_4();
            int num7 = (int)stream.vmethod_4();

            stream.vmethod_8();
            int num8  = (int)stream.vmethod_4();
            int num9  = (int)stream.vmethod_4();
            int num10 = (int)stream.vmethod_4();
            int num11 = (int)stream.vmethod_4();
            int num12 = (int)stream.vmethod_4();
            int num13 = (int)stream.vmethod_4();
            int num14 = (int)stream.vmethod_4();
            int num15 = (int)stream.vmethod_4();
            int num16 = (int)stream.vmethod_4();
            int num17 = (int)stream.vmethod_4();

            stream.vmethod_8();
            stream.vmethod_8();
            stream.vmethod_8();
            stream.vmethod_8();
            stream.vmethod_8();
            stream.vmethod_8();
            stream.vmethod_8();
            stream.vmethod_8();
            stream.vmethod_8();
            stream.vmethod_8();
            stream.vmethod_8();
            int num18 = (int)stream.vmethod_4();
            int num19 = (int)stream.vmethod_4();

            stream.vmethod_8();
            stream.vmethod_8();
            stream.vmethod_8();
            stream.vmethod_8();
            stream.vmethod_8();
            stream.vmethod_8();
            stream.vmethod_8();
            stream.vmethod_8();
        }
Ejemplo n.º 4
0
 internal Class672(Class672 A_0, Class679[] A_1)
 {
     this.rectangleF_0  = RectangleF.Empty;
     this.pointF_1      = PointF.Empty;
     this.sizeF_0       = SizeF.Empty;
     this.sizeF_1       = SizeF.Empty;
     this.class724_0    = A_0.class724_0;
     this.sprℭ_0        = A_0.sprℭ_0;
     this.shapeObject_0 = A_0.method_28();
     this.class316_0    = A_0.class316_0;
     this.sizeF_0       = A_0.sizeF_0;
     this.sizeF_1       = A_0.sizeF_1;
     this.spr➓_0        = new spr➓();
     Class889.smethod_0(this);
     this.class679_0 = A_1;
 }
Ejemplo n.º 5
0
        internal void Read(Class741.Class742 serializer)
        {
            Class889 stream = serializer.Stream;

            this.ushort_0 = stream.vmethod_6();
            this.byte_0   = stream.vmethod_3(6);
            this.uint_0   = stream.vmethod_10();
            this.int_1    = stream.vmethod_8();
            this.uint_1   = stream.vmethod_10();
            this.int_2    = stream.vmethod_8();
            this.int_3    = stream.vmethod_8();
            this.int_4    = stream.vmethod_8();
            this.int_5    = stream.vmethod_8();
            this.int_6    = stream.vmethod_8();
            stream.vmethod_3(8);
        }
Ejemplo n.º 6
0
            internal override void Read(Class741.Class742 serializer)
            {
                base.Read(serializer);
                Class889 stream   = serializer.Stream;
                long     position = stream.Position;

                foreach (Class49.Class53.Class63 propertyEntry in serializer.SchemaIndex.PropertyEntries)
                {
                    if ((int)propertyEntry.SegmentIndex == (int)this.class681_0.SegmentIndex)
                    {
                        Class558 class558 = new Class558();
                        class558.Read(stream);
                        this.list_1.Add(class558);
                    }
                }
                uint num1 = 0;

                foreach (Class49.Class53.Class62 schemaEntry in serializer.SchemaIndex.SchemaEntries)
                {
                    if ((int)schemaEntry.SegmentIndex == (int)this.class681_0.SegmentIndex)
                    {
                        stream.Position = position + (long)schemaEntry.LocalOffset;
                        Class48 class48 = new Class48();
                        class48.Index = num1;
                        class48.Name  = serializer.SchemaIndex.SchemaNames[(int)schemaEntry.Index];
                        class48.Read(stream);
                        this.list_0.Add(class48);
                    }
                    ++num1;
                }
                stream.Position = (long)this.SystemDataOffset;
                uint          num2       = stream.vmethod_10();
                List <string> stringList = new List <string>((int)num2);

                for (int index = 0; (long)index < (long)num2; ++index)
                {
                    stringList.Add(stream.vmethod_18());
                }
                for (int index = 0; index < this.list_0.Count; ++index)
                {
                    foreach (Class986 property in this.list_0[index].Properties)
                    {
                        property.Name      = stringList[(int)property.NameIndex];
                        property.NameIndex = uint.MaxValue;
                    }
                }
            }
Ejemplo n.º 7
0
 internal void Read(Class889 r)
 {
     this.uint_1 = r.vmethod_10();
     this.int_2  = r.vmethod_8();
     this.int_3  = r.vmethod_8();
     this.int_4  = r.vmethod_8();
     this.int_5  = r.vmethod_8();
     this.int_6  = r.vmethod_8();
     this.uint_2 = r.vmethod_10();
     this.int_7  = r.vmethod_8();
     this.int_8  = r.vmethod_8();
     this.uint_3 = r.vmethod_10();
     this.uint_4 = r.vmethod_10();
     this.uint_5 = r.vmethod_10();
     this.uint_6 = r.vmethod_10();
     this.int_9  = r.vmethod_8();
 }
Ejemplo n.º 8
0
        internal void Read(Class889 r)
        {
            this.enum52_0 = (Enum52)r.vmethod_8();
            this.uint_1   = r.vmethod_10();
            if ((this.enum52_0 & Enum52.flag_2) == Enum52.flag_0)
            {
                this.uint_2 = r.vmethod_10();
                if (this.uint_2 == 14U)
                {
                    this.uint_3 = r.vmethod_10();
                    this.uint_4 = this.uint_3;
                }
                else
                {
                    this.uint_4 = Class986.uint_7[(IntPtr)this.uint_2];
                }
            }
            if (this.enum52_0 == Enum52.flag_1)
            {
                this.uint_5 = r.vmethod_10();
            }
            else if (this.enum52_0 == Enum52.flag_3)
            {
                this.uint_6 = r.vmethod_10();
            }
            ushort num = r.vmethod_6();

            if (this.uint_4 == 0U)
            {
                if (this.uint_2 != 1U && this.uint_2 != 13U && this.uint_2 != 15U)
                {
                    throw new Exception("Unexpected type.");
                }
            }
            else
            {
                this.list_0.Capacity = (int)num;
                for (int index = 0; index < (int)num; ++index)
                {
                    this.list_0.Add(r.vmethod_3((int)this.uint_4));
                }
            }
        }
Ejemplo n.º 9
0
        public void Read(Class889 r)
        {
            ushort num1 = r.vmethod_6();

            this.list_0.Capacity = (int)num1;
            for (int index = 0; index < (int)num1; ++index)
            {
                this.list_0.Add(r.vmethod_14());
            }
            ushort num2 = r.vmethod_6();

            this.list_2.Capacity = (int)num2;
            for (int index = 0; index < (int)num2; ++index)
            {
                Class986 class986 = new Class986();
                class986.Read(r);
                this.list_2.Add(class986);
            }
        }
Ejemplo n.º 10
0
            private void method_1(Class889 r, int index, uint maxRawSize)
            {
                uint       num = r.vmethod_10();
                Interface2 nterface2;

                if (num + 4U <= maxRawSize)
                {
                    nterface2 = (Interface2) new Class1068();
                }
                else
                {
                    if (num != 3138415537U)
                    {
                        throw new Exception("Illegal data file segment data record data size " + (object)num + ".");
                    }
                    nterface2 = (Interface2) new Class49.Class52.Class58();
                }
                nterface2.Read(r, (int)num);
                this.list_0[index].ReferencedObject = nterface2;
            }
Ejemplo n.º 11
0
            internal override void Read(Class741.Class742 serializer)
            {
                base.Read(serializer);
                Class889 stream = serializer.Stream;
                uint     num1   = stream.vmethod_10();
                int      num2   = (int)stream.vmethod_10();

                this.list_1.Capacity = (int)num1;
                for (int index = 0; (long)index < (long)num1; ++index)
                {
                    Class49.Class53.Class62 class62 = new Class49.Class53.Class62();
                    class62.Read(stream);
                    this.list_1.Add(class62);
                    if (!this.hashSet_0.Contains(class62.SegmentIndex))
                    {
                        this.hashSet_0.Add(class62.SegmentIndex);
                    }
                }
                stream.vmethod_12();
                uint num3 = stream.vmethod_10();
                int  num4 = (int)stream.vmethod_10();

                this.list_2.Capacity = (int)num3;
                for (int index = 0; (long)index < (long)num3; ++index)
                {
                    Class49.Class53.Class63 class63 = new Class49.Class53.Class63();
                    class63.Read(stream);
                    this.list_2.Add(class63);
                    if (!this.hashSet_0.Contains(class63.SegmentIndex))
                    {
                        this.hashSet_0.Add(class63.SegmentIndex);
                    }
                }
                stream.Position = (long)this.SystemDataOffset;
                uint num5 = stream.vmethod_10();

                for (int index = 0; (long)index < (long)num5; ++index)
                {
                    this.list_0.Add(stream.vmethod_18());
                }
            }
Ejemplo n.º 12
0
        internal void Write(Class741.Class742 serializer)
        {
            Class889 stream = serializer.Stream;

            this.ulong_0 = (ulong)stream.Stream.Position;
            this.class681_0.Write(serializer);
            this.vmethod_0(serializer);
            uint n   = (uint)((ulong)stream.Stream.Position - this.ulong_0);
            uint num = Class49.smethod_0(n, 128);

            this.class681_0.SegmentSize = n + num;
            for (int index = 0; (long)index < (long)num; ++index)
            {
                stream.vmethod_1((byte)112);
            }
            long position = stream.Stream.Position;

            stream.Position = (long)this.ulong_0;
            this.class681_0.Write(serializer);
            stream.Position = position;
        }
Ejemplo n.º 13
0
                public void Read(Class889 r, int dataSize)
                {
                    long position1 = r.Position;

                    this.ulong_0 = r.vmethod_14();
                    this.uint_0  = r.vmethod_10();
                    int num1 = (int)r.vmethod_10();

                    this.uint_1 = r.vmethod_10();
                    this.uint_2 = r.vmethod_10();
                    int num2 = (int)r.vmethod_10();
                    int num3 = (int)r.vmethod_10();

                    this.list_0.Capacity = (int)this.uint_0;
                    for (int index = 0; (long)index < (long)this.uint_0; ++index)
                    {
                        Class49.Class52.Class58.Class59 class59 = new Class49.Class52.Class58.Class59();
                        class59.Read(r);
                        this.list_0.Add(class59);
                    }
                    long position2 = r.Position;
                }
Ejemplo n.º 14
0
            internal override void vmethod_0(Class741.Class742 serializer)
            {
                Class889 stream    = serializer.Stream;
                long     position1 = stream.Position;
                int      num1      = (this.list_0.Count * 20 + 16) / 16;

                for (int index1 = 0; index1 < num1; ++index1)
                {
                    for (int index2 = 0; index2 < 16; ++index2)
                    {
                        stream.vmethod_1((byte)98);
                    }
                }
                this.DataOffset = (ulong)stream.Position;
                for (int index = 0; index < this.list_0.Count; ++index)
                {
                    uint num2 = (uint)((ulong)stream.Position - this.DataOffset);
                    Class49.Class52.Class60 class60 = this.list_0[index];
                    if (class60.ReferencedObject == null)
                    {
                        throw new Exception("Entry's ReferencedObject property is null.");
                    }
                    class60.ReferencedObject.Write(stream);
                    class60.LocalOffset = num2;
                }
                long position2 = stream.Position;

                stream.Position = position1;
                for (int index = 0; index < this.list_0.Count; ++index)
                {
                    serializer.DataIndex.Entries.Add(new Class49.Class54.Class64()
                    {
                        SegmentIndex = this.class681_0.SegmentIndex,
                        LocalOffset  = (uint)(stream.Position - position1)
                    });
                    this.list_0[index].Write(stream);
                }
                stream.Position = position2;
            }
Ejemplo n.º 15
0
 internal void Write(Class889 w)
 {
     w.vmethod_11(this.uint_0);
     w.vmethod_15((ulong)this.list_0.Count);
     foreach (ulong num in this.list_0)
     {
         w.vmethod_15(num);
     }
     w.vmethod_11((uint)this.class47_0.Length);
     if (this.class47_0.Length <= 0)
     {
         return;
     }
     w.vmethod_11(0U);
     foreach (Class46.Class47[] class47Array in this.class47_0)
     {
         w.vmethod_11((uint)class47Array.Length);
         foreach (Class46.Class47 class47 in class47Array)
         {
             class47.Write(w);
         }
     }
 }
Ejemplo n.º 16
0
        internal void Write(Class741.Class742 serializer)
        {
            Class889 stream = serializer.Stream;

            stream.vmethod_7(this.ushort_0);
            if (this.byte_0 == null || this.byte_0.Length != 6)
            {
                throw new Exception("Name must be 6 bytes long.");
            }
            stream.vmethod_2(this.byte_0, 0, this.byte_0.Length);
            stream.vmethod_11(this.uint_0);
            stream.vmethod_9(this.int_1);
            stream.vmethod_11(this.uint_1);
            stream.vmethod_9(this.int_2);
            stream.vmethod_9(this.int_3);
            stream.vmethod_9(this.int_4);
            stream.vmethod_9(this.int_5);
            stream.vmethod_9(this.int_6);
            for (int index = 0; index < 8; ++index)
            {
                stream.vmethod_1((byte)85);
            }
        }
Ejemplo n.º 17
0
            internal override void Read(Class741.Class742 serializer)
            {
                base.Read(serializer);
                Class889 stream   = serializer.Stream;
                long     position = stream.Position;
                List <Class49.Class54.Class64> toDataIndexEntry = serializer.SegmentIndexToDataIndexEntries[this.class681_0.SegmentIndex];
                int count = toDataIndexEntry.Count;

                this.list_0.Capacity = count;
                for (int index = 0; index < count; ++index)
                {
                    stream.Position = position + (long)toDataIndexEntry[index].LocalOffset;
                    Class49.Class52.Class60 class60 = new Class49.Class52.Class60();
                    if (class60.Read(stream))
                    {
                        this.list_0.Add(class60);
                    }
                }
                if (this.list_0.Count <= 0)
                {
                    return;
                }
                long dataOffset = (long)this.DataOffset;
                int  num        = this.list_0.Count - 1;
                int  index1;

                for (index1 = 0; index1 < num; ++index1)
                {
                    stream.Position = dataOffset + (long)this.list_0[index1].LocalOffset;
                    uint maxRawSize = this.list_0[index1 + 1].LocalOffset - this.list_0[index1].LocalOffset;
                    this.method_1(stream, index1, maxRawSize);
                }
                stream.Position = dataOffset + (long)this.list_0[index1].LocalOffset;
                uint maxRawSize1 = (uint)((ulong)-(long)this.class681_0.ObjectDataLocalOffset + (ulong)this.class681_0.SegmentSize - (ulong)this.list_0[index1].LocalOffset);

                this.method_1(stream, index1, maxRawSize1);
            }
Ejemplo n.º 18
0
 internal Class672(Class724 A_0, Class673 A_1, sprℭ A_2)
 {
     this.rectangleF_0  = RectangleF.Empty;
     this.pointF_1      = PointF.Empty;
     this.sizeF_0       = SizeF.Empty;
     this.sizeF_1       = SizeF.Empty;
     this.class724_0    = A_0;
     this.sprℭ_0        = A_2;
     this.shapeObject_0 = (ShapeObject)A_0.method_3();
     this.class316_0    = new Class316(this.shapeObject_0, A_0.method_4(), A_1);
     this.class316_1    = new Class316(this.shapeObject_0, A_0.method_4(), A_1, this.shapeObject_0.Owner is ShapeGroup);
     if (A_0.method_4().IsEmpty)
     {
         this.sizeF_0 = A_0.method_3().Size;
         this.sizeF_1 = A_0.method_3().SizeInPoints;
     }
     else
     {
         this.sizeF_0 = A_0.method_4();
         this.sizeF_1 = A_0.method_4();
     }
     this.spr➓_0 = new spr➓();
     Class889.smethod_0(this);
 }
Ejemplo n.º 19
0
 private void method_13(Class889 w)
 {
     this.method_16(w, (Class49)this.class53_0);
     this.class916_0.SchemaIndexSegmentIndex = this.class53_0.Header.SegmentIndex;
 }
Ejemplo n.º 20
0
            internal override void vmethod_0(Class741.Class742 serializer)
            {
                Class889 stream   = serializer.Stream;
                long     position = stream.Position;
                uint     num1     = serializer.SchemaIndex.PropertyEntries.Count == 0 ? 1U : serializer.SchemaIndex.PropertyEntries[serializer.SchemaIndex.PropertyEntries.Count - 1].Index + 1U;

                foreach (Class558 class558 in this.list_1)
                {
                    uint num2 = (uint)(stream.Position - position);
                    serializer.SchemaIndex.PropertyEntries.Add(new Class49.Class53.Class63()
                    {
                        Index        = num1,
                        SegmentIndex = this.class681_0.SegmentIndex,
                        LocalOffset  = num2
                    });
                    class558.Write(stream);
                    ++num1;
                }
                List <string>             stringList = new List <string>();
                Dictionary <string, uint> dictionary = new Dictionary <string, uint>();

                foreach (Class48 class48 in this.list_0)
                {
                    foreach (Class986 property in class48.Properties)
                    {
                        uint count;
                        if (!dictionary.TryGetValue(property.Name, out count))
                        {
                            count = (uint)stringList.Count;
                            stringList.Add(property.Name);
                            dictionary.Add(property.Name, count);
                        }
                        property.NameIndex = count;
                    }
                }
                if (serializer.SchemaIndex.SchemaEntries.Count != 0)
                {
                    throw new Exception("SchemaIndex.SchemaEntries is expected to have 0 elements.");
                }
                uint num3 = 0;

                foreach (Class48 class48 in this.list_0)
                {
                    uint num2 = (uint)(stream.Position - position);
                    serializer.SchemaIndex.SchemaEntries.Add(new Class49.Class53.Class62()
                    {
                        Index        = num3,
                        SegmentIndex = this.class681_0.SegmentIndex,
                        LocalOffset  = num2
                    });
                    class48.Write(stream);
                    ++num3;
                }
                uint num4 = Class49.smethod_0((uint)(stream.Position - position), 16);

                for (int index = 0; (long)index < (long)num4; ++index)
                {
                    stream.vmethod_1((byte)115);
                }
                this.SystemDataOffset = (ulong)stream.Position;
                stream.vmethod_11((uint)stringList.Count);
                foreach (string str in stringList)
                {
                    stream.vmethod_20(str);
                }
            }
Ejemplo n.º 21
0
 internal void Write(Class889 w)
 {
     w.vmethod_11(this.uint_0);
     w.vmethod_11(this.uint_1);
 }
Ejemplo n.º 22
0
 internal void Read(Class889 r)
 {
     this.uint_0 = r.vmethod_10();
     this.uint_1 = r.vmethod_10();
 }
Ejemplo n.º 23
0
 private void method_11(Class889 w)
 {
     this.method_16(w, (Class49)this.class54_0);
     this.class916_0.DataIndexSegmentIndex = this.class54_0.Header.SegmentIndex;
 }
Ejemplo n.º 24
0
 public void Read(Class889 r, int dataSize)
 {
     this.stream_0 = (Stream) new PagedMemoryStream(r.Stream, (long)dataSize);
 }
Ejemplo n.º 25
0
 public void Write(Class889 w)
 {
     w.vmethod_11((uint)this.stream_0.Length);
     StreamUtil.Forward(this.stream_0, w.Stream);
 }
Ejemplo n.º 26
0
 private void method_14(Class889 w)
 {
     this.method_16(w, (Class49)this.class50_0);
     this.class916_0.SearchSegmentIndex = this.class50_0.Header.SegmentIndex;
 }