Photon Server API
Public Member Functions | List of all members
Samples.TopicChannels.MyMessageSerializer Class Reference

A de/serializer for MyMessage More...

Inheritance diagram for Samples.TopicChannels.MyMessageSerializer:
ExitGames.Messaging.Channels.IMessageSerializer< MyMessage >

Public Member Functions

MyMessage Deserialize (byte[] bytes)
 Converts a byte array into MyMessage (reverts Serialize). More...
 
byte[] Serialize (MyMessage message)
 Converts MyMessage into a byte array More...
 
- Public Member Functions inherited from ExitGames.Messaging.Channels.IMessageSerializer< MyMessage >
Deserialize (byte[] bytes)
 Deserializes a message. More...
 
byte[] Serialize (T message)
 Serialize a message. More...
 

Detailed Description

A de/serializer for MyMessage

Member Function Documentation

MyMessage Samples.TopicChannels.MyMessageSerializer.Deserialize ( byte[]  bytes)
inline

Converts a byte array into MyMessage (reverts Serialize).

byte [] Samples.TopicChannels.MyMessageSerializer.Serialize ( MyMessage  message)
inline

Converts MyMessage into a byte array