Ejemplo n.º 1
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.º 2
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));
                }
            }
        }