Photon Server API

Public Member Functions | 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)
 

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

Property Documentation

◆ TypeMapper

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