namespace Unity.Netcode { /// /// Header placed at the start of each message batch /// internal struct NetworkBatchHeader : INetworkSerializeByMemcpy { internal const ushort MagicValue = 0x1160; /// /// A magic number to detect corrupt messages. /// Always set to k_MagicValue /// public ushort Magic; /// /// Total number of bytes in the batch. /// public int BatchSize; /// /// Hash of the message to detect corrupt messages. /// public ulong BatchHash; /// /// Total number of messages in the batch. /// public ushort BatchCount; } }