public static int GetSerializedBitSize_Class(object obj)
 {
     if (obj == null)
     {
         return(1);
     }
     return(1 + NetSerializer.GetSerializedBitSize(obj));
 }
Exemplo n.º 2
0
        public bool ExceedsSizeLimit(SimTickData tick)
        {
            var message = MakeMessage(tick);

            return(NetSerializer.GetSerializedBitSize(message) > OnlineConstants.MAX_MESSAGE_SIZE_BITS);
        }