Photon Server API Documentation v5.0RC1

Public Member Functions | Static Public Attributes | Properties | List of all members
Photon.SocketServer.Rpc.Protocols.CustomTypeCache Class Reference

Public Member Functions

void Clear ()
 
bool TryGet (Type type, out CustomTypeInfo customTypeInfo)
 
bool TryGet (byte typeCode, out CustomTypeInfo customTypeInfo)
 
bool TryGetCustomTypeInfo (Type type, CustomTypeCache privateCustomTypeCache, out CustomTypeInfo customTypeInfo)
 
bool TryGetCustomTypeInfo (byte typeCode, CustomTypeCache privateCustomTypeCache, out CustomTypeInfo customTypeInfo)
 
bool TryRegisterType (Type type, byte typeCode, Func< object, byte[]> serializeFunction, Func< byte[], object > deserializeFunction)
 

Static Public Attributes

const int MaxValueForCustomTypeCompression = 100
 

Properties

IUnknownTypeMapper TypeMapper [get, set]
 

Member Function Documentation

◆ Clear()

void Photon.SocketServer.Rpc.Protocols.CustomTypeCache.Clear ( )
inline

◆ TryGet() [1/2]

bool Photon.SocketServer.Rpc.Protocols.CustomTypeCache.TryGet ( byte  typeCode,
out CustomTypeInfo  customTypeInfo 
)
inline

◆ TryGet() [2/2]

bool Photon.SocketServer.Rpc.Protocols.CustomTypeCache.TryGet ( Type  type,
out CustomTypeInfo  customTypeInfo 
)
inline

◆ TryGetCustomTypeInfo() [1/2]

bool Photon.SocketServer.Rpc.Protocols.CustomTypeCache.TryGetCustomTypeInfo ( byte  typeCode,
CustomTypeCache  privateCustomTypeCache,
out CustomTypeInfo  customTypeInfo 
)
inline

◆ TryGetCustomTypeInfo() [2/2]

bool Photon.SocketServer.Rpc.Protocols.CustomTypeCache.TryGetCustomTypeInfo ( Type  type,
CustomTypeCache  privateCustomTypeCache,
out CustomTypeInfo  customTypeInfo 
)
inline

◆ TryRegisterType()

bool Photon.SocketServer.Rpc.Protocols.CustomTypeCache.TryRegisterType ( Type  type,
byte  typeCode,
Func< object, byte[]>  serializeFunction,
Func< byte[], object >  deserializeFunction 
)
inline

Member Data Documentation

◆ MaxValueForCustomTypeCompression

const int Photon.SocketServer.Rpc.Protocols.CustomTypeCache.MaxValueForCustomTypeCompression = 100
static

Property Documentation

◆ TypeMapper

IUnknownTypeMapper Photon.SocketServer.Rpc.Protocols.CustomTypeCache.TypeMapper
getset