// Token: 0x060010B9 RID: 4281 RVA: 0x000165BC File Offset: 0x000147BC
        public static void Serialize(Stream stream, PlayerMatchStats instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                Int32Proxy.Serialize(memoryStream, instance.Cmid);
                Int32Proxy.Serialize(memoryStream, instance.Death);
                BooleanProxy.Serialize(memoryStream, instance.HasFinishedMatch);
                BooleanProxy.Serialize(memoryStream, instance.HasWonMatch);
                Int32Proxy.Serialize(memoryStream, instance.Headshots);
                Int64Proxy.Serialize(memoryStream, instance.Hits);
                Int32Proxy.Serialize(memoryStream, instance.Kills);
                Int32Proxy.Serialize(memoryStream, instance.Nutshots);
                if (instance.PersonalRecord != null)
                {
                    PlayerPersonalRecordStatisticsViewProxy.Serialize(memoryStream, instance.PersonalRecord);
                }
                else
                {
                    num |= 1;
                }
                Int64Proxy.Serialize(memoryStream, instance.Shots);
                Int32Proxy.Serialize(memoryStream, instance.Smackdowns);
                Int32Proxy.Serialize(memoryStream, instance.TimeSpentInGame);
                if (instance.WeaponStatistics != null)
                {
                    PlayerWeaponStatisticsViewProxy.Serialize(memoryStream, instance.WeaponStatistics);
                }
                else
                {
                    num |= 2;
                }
                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }
        // Token: 0x060010E9 RID: 4329 RVA: 0x00018BDC File Offset: 0x00016DDC
        public static void Serialize(Stream stream, PlayerStatisticsView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                Int32Proxy.Serialize(memoryStream, instance.Cmid);
                Int32Proxy.Serialize(memoryStream, instance.Headshots);
                Int64Proxy.Serialize(memoryStream, instance.Hits);
                Int32Proxy.Serialize(memoryStream, instance.Level);
                Int32Proxy.Serialize(memoryStream, instance.Nutshots);
                if (instance.PersonalRecord != null)
                {
                    PlayerPersonalRecordStatisticsViewProxy.Serialize(memoryStream, instance.PersonalRecord);
                }
                else
                {
                    num |= 1;
                }
                Int64Proxy.Serialize(memoryStream, instance.Shots);
                Int32Proxy.Serialize(memoryStream, instance.Splats);
                Int32Proxy.Serialize(memoryStream, instance.Splatted);
                Int32Proxy.Serialize(memoryStream, instance.TimeSpentInGame);
                if (instance.WeaponStatistics != null)
                {
                    PlayerWeaponStatisticsViewProxy.Serialize(memoryStream, instance.WeaponStatistics);
                }
                else
                {
                    num |= 2;
                }
                Int32Proxy.Serialize(memoryStream, instance.Xp);
                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }