Photon Server API
Public Member Functions | Public Attributes | Properties | List of all members
Photon.SocketServer.Rpc.ValueTypes.RawCustomArray Class Reference

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

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

Public Member Functions

 RawCustomArray (byte code, int count)
 Initializes a new instance of the RawCustomArray class. More...
 
IEnumerator GetEnumerator ()
 Gets an enumerator for the custom arrays. More...
 
bool Equals (RawCustomArray other)
 

Public Attributes

readonly byte Code
 Gets the type code of the custom type. More...
 

Properties

int Length [get]
 Gets the array's length. More...
 
byte[] this[int i] [get, set]
 Gets the byte array at the specified index. More...
 

Detailed Description

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

Constructor & Destructor Documentation

Photon.SocketServer.Rpc.ValueTypes.RawCustomArray.RawCustomArray ( byte  code,
int  count 
)
inline

Initializes a new instance of the RawCustomArray class.

Parameters
codeThe code of the custom type.
countThe number of element in the array.

Member Function Documentation

bool Photon.SocketServer.Rpc.ValueTypes.RawCustomArray.Equals ( RawCustomArray  other)
inline
IEnumerator Photon.SocketServer.Rpc.ValueTypes.RawCustomArray.GetEnumerator ( )
inline

Gets an enumerator for the custom arrays.

Returns
The enumerator.

Member Data Documentation

readonly byte Photon.SocketServer.Rpc.ValueTypes.RawCustomArray.Code

Gets the type code of the custom type.

Property Documentation

int Photon.SocketServer.Rpc.ValueTypes.RawCustomArray.Length
get

Gets the array's length.

byte [] Photon.SocketServer.Rpc.ValueTypes.RawCustomArray.this[int i]
getset

Gets the byte array at the specified index.

Parameters
iThe index.
Returns
The byte array at the specified index.