Enum PayloadDecodeError
- Namespace
- Unity.Multiplayer.Core
Why bytes did not decode as a ConnectionPayload.
public enum PayloadDecodeError
Fields
BadMagic = 3The first two bytes are not the payload magic: not a MindAttic connection request.
Empty = 1No bytes at all (a client that sent no connection data).
InvalidField = 8Every field decoded but one fails Validate().
InvalidText = 7A string field is not valid UTF-8.
None = 0It decoded.
TooLarge = 2More than MaxEncodedLength bytes.
TrailingBytes = 6Bytes remain after the last field.
Truncated = 5The bytes end before the last field.
UnsupportedFormatVersion = 4A format version this build cannot read (newer, or zero). GameVersion still holds the sender's game version when it could be read, since every format starts with it.