コード例 #1
0
            internal override void vmethod_0(Class741.Class742 serializer)
            {
                Class889 stream = serializer.Stream;

                this.list_0.Clear();
                foreach (Class48 schema in serializer.DataStore.Schemas)
                {
                    this.list_0.Add(schema.Name);
                }
                stream.vmethod_11((uint)this.list_1.Count);
                stream.vmethod_11(0U);
                foreach (Class49.Class53.Class62 class62 in this.list_1)
                {
                    class62.Write(stream);
                }
                stream.vmethod_13(717068L);
                stream.vmethod_11((uint)this.list_2.Count);
                stream.vmethod_11(0U);
                foreach (Class49.Class53.Class63 class63 in this.list_2)
                {
                    class63.Write(stream);
                }
                uint num = Class49.smethod_0((uint)((ulong)stream.Position - this.ulong_0), 16);

                for (int index = 0; (long)index < (long)num; ++index)
                {
                    stream.vmethod_1((byte)115);
                }
                this.SystemDataOffset = (ulong)stream.Position;
                stream.vmethod_11((uint)this.list_0.Count);
                foreach (string str in this.list_0)
                {
                    stream.vmethod_20(str);
                }
            }
コード例 #2
0
ファイル: Class986.cs プロジェクト: 15831944/WW
 internal void Write(Class889 w)
 {
     w.vmethod_9((int)this.enum52_0);
     if (this.uint_1 == uint.MaxValue)
     {
         throw new Exception("Uninitialized nameIndex.");
     }
     w.vmethod_11(this.uint_1);
     if ((this.enum52_0 & Enum52.flag_2) == Enum52.flag_0)
     {
         w.vmethod_11(this.uint_2);
         if (this.uint_2 == 14U)
         {
             w.vmethod_11(this.uint_3);
         }
     }
     if (this.enum52_0 == Enum52.flag_1)
     {
         w.vmethod_11(this.uint_5);
     }
     else if (this.enum52_0 == Enum52.flag_3)
     {
         w.vmethod_11(this.uint_6);
     }
     w.vmethod_7((ushort)this.list_0.Count);
     foreach (byte[] numArray in this.list_0)
     {
         w.vmethod_2(numArray, 0, (int)this.uint_4);
     }
 }
コード例 #3
0
 internal void Write(Class889 w)
 {
     w.vmethod_11(20U);
     w.vmethod_11(1U);
     w.vmethod_15(this.ulong_0);
     w.vmethod_11(this.uint_0);
 }
コード例 #4
0
            internal override void vmethod_0(Class741.Class742 serializer)
            {
                Class889 stream = serializer.Stream;

                stream.vmethod_11((uint)this.list_0.Count);
                foreach (Class46 class46 in this.list_0)
                {
                    class46.Write(stream);
                }
            }
コード例 #5
0
ファイル: Class916.cs プロジェクト: 15831944/WW
 internal void Write(Class889 w)
 {
     w.vmethod_11(this.uint_1);
     if (this.uint_1 != 1685217642U)
     {
         throw new Exception("Unexpected signature value " + (object)this.uint_1 + "should be " + (object)1685217642U + ".");
     }
     w.vmethod_9(this.int_2);
     w.vmethod_9(this.int_3);
     if (this.int_3 != 2 && this.int_3 != 3)
     {
         throw new Exception("Unexpected value " + (object)this.int_3 + "should be 2 or 3.");
     }
     w.vmethod_9(this.int_4);
     if (this.int_4 != 2)
     {
         throw new Exception("Unexpected version value " + (object)this.int_4 + "should be " + (object)2 + ".");
     }
     w.vmethod_9(this.int_5);
     w.vmethod_9(this.int_6);
     w.vmethod_11(this.uint_2);
     w.vmethod_9(this.int_7);
     w.vmethod_9(this.int_8);
     w.vmethod_11(this.uint_3);
     w.vmethod_11(this.uint_4);
     w.vmethod_11(this.uint_5);
     w.vmethod_11(this.uint_6);
     w.vmethod_9(this.int_9);
 }
コード例 #6
0
ファイル: Class46.cs プロジェクト: 15831944/WW
 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);
         }
     }
 }
コード例 #7
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);
            }
        }
コード例 #8
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);
     }
 }
コード例 #9
0
ファイル: Class1068.cs プロジェクト: 15831944/WW
 public void Write(Class889 w)
 {
     w.vmethod_11((uint)this.stream_0.Length);
     StreamUtil.Forward(this.stream_0, w.Stream);
 }
コード例 #10
0
ファイル: Class558.cs プロジェクト: 15831944/WW
 internal void Write(Class889 w)
 {
     w.vmethod_11(this.uint_0);
     w.vmethod_11(this.uint_1);
 }
コード例 #11
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);
                }
            }