![]() | ApiMessage Structure |
Namespace: ImmerseSDK.Multiplayer.Messaging
public struct ApiMessage : IMortarMessage
The ApiMessage type exposes the following members.
Name | Description | |
---|---|---|
![]() | Payload |
The data sent within this message in byte array format
|
![]() | PayloadLength |
The length of the message data byte array
|
![]() | Type |
The message type, can be built in (0-1000) or custom (1001+)
|
Name | Description | |
---|---|---|
![]() | PayloadToObjectT |
Deserializes a Serializable object from a byte array
(Defined by PayloadSerialization.) |
![]() | PayloadToObjectFromJsonT |
Deserializes an objects from a byte array containing a UTF8 encoded json string
(Defined by PayloadSerialization.) |
![]() | PayloadToString |
Reads a message payload as a UTF8 encoded string
(Defined by PayloadSerialization.) |