// Token: 0x0600027E RID: 638 RVA: 0x00009109 File Offset: 0x00007309
 public static int SizeOf(ConditionEffect condEff)
 {
     if (condEff.Effect == 0u)
     {
         return(1);
     }
     return((int)(1u + ConditionEffect.NumberOfSetBits(condEff.Effect)));
 }
        // Token: 0x0600027D RID: 637 RVA: 0x000090B4 File Offset: 0x000072B4
        public static void Save(ref ByteBuffer buffer, ConditionEffect condEff)
        {
            if (condEff.Effect == 0u)
            {
                buffer.WriteByte(0);
                return;
            }
            buffer.WriteByte((byte)ConditionEffect.NumberOfSetBits(condEff.Effect));
            uint num = condEff.Effect;
            byte b   = 0;

            while (num != 0u)
            {
                if ((num & 1u) != 0u)
                {
                    buffer.WriteByte(b);
                }
                b    += 1;
                num >>= 1;
            }
        }