Photon Server API Documentation v5.0RC1

Public Member Functions | Properties | List of all members
Photon.SocketServer.Rpc.ValueTypes.RawCustomValue Class Reference

Instances of this class will be created for unknown custom types sent by a client if the Protocol.AllowRawCustomValues property is set to true. More...

Inheritance diagram for Photon.SocketServer.Rpc.ValueTypes.RawCustomValue:

Public Member Functions

 RawCustomValue (byte code, byte[] data)
 Initializes a new instance of the RawCustomValue class. More...
 
bool Equals (RawCustomValue other)
 

Properties

byte Code [get, set]
 Gets or sets the type code of the custom type. More...
 
byte[] Data [get, set]
 Gets or sets the serialized data of the custom type. More...
 

Detailed Description

Instances of this class will be created for unknown custom types sent by a client if the Protocol.AllowRawCustomValues property is set to true.

Constructor & Destructor Documentation

◆ RawCustomValue()

Photon.SocketServer.Rpc.ValueTypes.RawCustomValue.RawCustomValue ( byte  code,
byte[]  data 
)
inline

Initializes a new instance of the RawCustomValue class.

Parameters
codeThe code of the custom type.
dataThe serialized data.

Member Function Documentation

◆ Equals()

bool Photon.SocketServer.Rpc.ValueTypes.RawCustomValue.Equals ( RawCustomValue  other)
inline

Property Documentation

◆ Code

byte Photon.SocketServer.Rpc.ValueTypes.RawCustomValue.Code
getset

Gets or sets the type code of the custom type.

◆ Data

byte [] Photon.SocketServer.Rpc.ValueTypes.RawCustomValue.Data
getset

Gets or sets the serialized data of the custom type.