public static int GetSerializedBitSize_Class(object obj) { if (obj == null) { return(1); } return(1 + NetSerializer.GetSerializedBitSize(obj)); }
public bool ExceedsSizeLimit(SimTickData tick) { var message = MakeMessage(tick); return(NetSerializer.GetSerializedBitSize(message) > OnlineConstants.MAX_MESSAGE_SIZE_BITS); }