Beamable SDK
Public Member Functions | Public Attributes | Properties | List of all members
Beamable.Serialization.JsonSerializable.LoadStream Class Reference

Class LoadStream is an IStreamSerializer for JsonSerializable Provides deserialization of Dictionary(string, object) into ISerializable objects More...

Inheritance diagram for Beamable.Serialization.JsonSerializable.LoadStream:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Serialization.JsonSerializable.LoadStream:
Collaboration graph
[legend]

Public Member Functions

void Init (IDictionary< string, object > dict, JsonSerializable.ListMode m)
 
override void OnRecycle ()
 
bool HasKey (string key)
 
object GetValue (string key)
 
void SetValue (string key, object value)
 
void RegisterISerializableFactory (ISerializableFactory factory)
 
void DeregisterISerializableFactory (ISerializableFactory factory)
 
bool Serialize (string key, ref IDictionary< string, object > target)
 
bool SerializeDictionary< T > (string parentKey, ref Dictionary< string, T > target)
 
bool Serialize (string key, ref bool target)
 
bool Serialize (string key, ref bool? target)
 
bool Serialize (string key, ref int target)
 
bool Serialize (string key, ref int? target)
 
bool Serialize (string key, ref long target)
 
bool Serialize (string key, ref long? target)
 
bool Serialize (string key, ref ulong target)
 
bool Serialize (string key, ref ulong? target)
 
bool Serialize (string key, ref float target)
 
bool Serialize (string key, ref float? target)
 
bool Serialize (string key, ref double target)
 
bool Serialize (string key, ref double? target)
 
bool Serialize (string key, ref string target)
 
bool Serialize (string key, ref StringBuilder target)
 
bool Serialize (string key, ref DateTime target)
 
bool Serialize (string key, ref Rect target)
 
bool Serialize (string key, ref Vector2 v)
 
bool Serialize (string key, ref Vector3 v)
 
bool Serialize (string key, ref Vector4 v)
 
bool Serialize (string key, ref Color v)
 
bool Serialize (string key, ref Quaternion target)
 
bool Serialize (string key, ref Gradient target)
 
bool Serialize< T > (string key, ref T value)
 
bool SerializeInline< T > (string key, ref T value)
 
bool SerializeILL< T > (string key, ref LinkedList< T > ill)
 
bool SerializeList< TList > (string key, ref TList value)
 
bool SerializeArray< T > (string key, ref T[] target)
 
- Public Member Functions inherited from Beamable.Pooling.ClassPool< LoadStream >
void Recycle ()
 
void Dispose ()
 

Public Attributes

IDictionary< string, object > curDict
 
JsonSerializable.ListMode mode
 
- Public Attributes inherited from Beamable.Pooling.ClassPool< LoadStream >
LinkedListNode< T > poolNode
 

Properties

bool isSaving [get]
 
bool isLoading [get]
 
ListMode Mode [get]
 
- Properties inherited from Beamable.Serialization.JsonSerializable.IStreamSerializer
bool isSaving [get]
 
bool isLoading [get]
 
JsonSerializable.ListMode Mode [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from Beamable.Pooling.ClassPool< LoadStream >
static void ClearList (LinkedList< T > list)
 
static T Spawn ()
 
static void Recycle (ClassPool< T > obj)
 
static void Preallocate (int count)
 
- Static Public Attributes inherited from Beamable.Pooling.ClassPool< LoadStream >
static LinkedList< T > free
 

Detailed Description

Class LoadStream is an IStreamSerializer for JsonSerializable Provides deserialization of Dictionary(string, object) into ISerializable objects

Member Function Documentation

◆ GetValue()

object Beamable.Serialization.JsonSerializable.LoadStream.GetValue ( string  key)
inline

◆ HasKey()

bool Beamable.Serialization.JsonSerializable.LoadStream.HasKey ( string  key)
inline

◆ OnRecycle()

override void Beamable.Serialization.JsonSerializable.LoadStream.OnRecycle ( )
inlinevirtual

◆ Serialize() [1/23]

bool Beamable.Serialization.JsonSerializable.LoadStream.Serialize ( string  key,
ref bool  target 
)
inline

◆ Serialize() [2/23]

bool Beamable.Serialization.JsonSerializable.LoadStream.Serialize ( string  key,
ref bool?  target 
)
inline

◆ Serialize() [3/23]

bool Beamable.Serialization.JsonSerializable.LoadStream.Serialize ( string  key,
ref Color  v 
)
inline

◆ Serialize() [4/23]

bool Beamable.Serialization.JsonSerializable.LoadStream.Serialize ( string  key,
ref DateTime  target 
)
inline

◆ Serialize() [5/23]

bool Beamable.Serialization.JsonSerializable.LoadStream.Serialize ( string  key,
ref double  target 
)
inline

◆ Serialize() [6/23]

bool Beamable.Serialization.JsonSerializable.LoadStream.Serialize ( string  key,
ref double?  target 
)
inline

◆ Serialize() [7/23]

bool Beamable.Serialization.JsonSerializable.LoadStream.Serialize ( string  key,
ref float  target 
)
inline

◆ Serialize() [8/23]

bool Beamable.Serialization.JsonSerializable.LoadStream.Serialize ( string  key,
ref float?  target 
)
inline

◆ Serialize() [9/23]

bool Beamable.Serialization.JsonSerializable.LoadStream.Serialize ( string  key,
ref Gradient  target 
)
inline

◆ Serialize() [10/23]

bool Beamable.Serialization.JsonSerializable.LoadStream.Serialize ( string  key,
ref IDictionary< string, object >  target 
)
inline

◆ Serialize() [11/23]

bool Beamable.Serialization.JsonSerializable.LoadStream.Serialize ( string  key,
ref int  target 
)
inline

◆ Serialize() [12/23]

bool Beamable.Serialization.JsonSerializable.LoadStream.Serialize ( string  key,
ref int?  target 
)
inline

◆ Serialize() [13/23]

bool Beamable.Serialization.JsonSerializable.LoadStream.Serialize ( string  key,
ref long  target 
)
inline

◆ Serialize() [14/23]

bool Beamable.Serialization.JsonSerializable.LoadStream.Serialize ( string  key,
ref long?  target 
)
inline

◆ Serialize() [15/23]

bool Beamable.Serialization.JsonSerializable.LoadStream.Serialize ( string  key,
ref Quaternion  target 
)
inline

◆ Serialize() [16/23]

bool Beamable.Serialization.JsonSerializable.LoadStream.Serialize ( string  key,
ref Rect  target 
)
inline

◆ Serialize() [17/23]

bool Beamable.Serialization.JsonSerializable.LoadStream.Serialize ( string  key,
ref string  target 
)
inline

◆ Serialize() [18/23]

bool Beamable.Serialization.JsonSerializable.LoadStream.Serialize ( string  key,
ref StringBuilder  target 
)
inline

◆ Serialize() [19/23]

bool Beamable.Serialization.JsonSerializable.LoadStream.Serialize ( string  key,
ref ulong  target 
)
inline

◆ Serialize() [20/23]

bool Beamable.Serialization.JsonSerializable.LoadStream.Serialize ( string  key,
ref ulong?  target 
)
inline

◆ Serialize() [21/23]

bool Beamable.Serialization.JsonSerializable.LoadStream.Serialize ( string  key,
ref Vector2  v 
)
inline

◆ Serialize() [22/23]

bool Beamable.Serialization.JsonSerializable.LoadStream.Serialize ( string  key,
ref Vector3  v 
)
inline

◆ Serialize() [23/23]

bool Beamable.Serialization.JsonSerializable.LoadStream.Serialize ( string  key,
ref Vector4  v 
)
inline

◆ Serialize< T >()

bool Beamable.Serialization.JsonSerializable.LoadStream.Serialize< T > ( string  key,
ref T  value 
)
inline

Implements Beamable.Serialization.JsonSerializable.IStreamSerializer.

Type Constraints
T :class 
T :ISerializable 
T :new() 

◆ SerializeArray< T >()

bool Beamable.Serialization.JsonSerializable.LoadStream.SerializeArray< T > ( string  key,
ref T[]  target 
)
inline

◆ SerializeDictionary< T >()

bool Beamable.Serialization.JsonSerializable.LoadStream.SerializeDictionary< T > ( string  parentKey,
ref Dictionary< string, T >  target 
)
inline

◆ SerializeILL< T >()

bool Beamable.Serialization.JsonSerializable.LoadStream.SerializeILL< T > ( string  key,
ref LinkedList< T >  ill 
)
inline

Implements Beamable.Serialization.JsonSerializable.IStreamSerializer.

Type Constraints
T :ClassPool<T> 
T :new() 

◆ SerializeInline< T >()

bool Beamable.Serialization.JsonSerializable.LoadStream.SerializeInline< T > ( string  key,
ref T  value 
)
inline

Implements Beamable.Serialization.JsonSerializable.IStreamSerializer.

Type Constraints
T :ISerializable 

◆ SerializeList< TList >()

bool Beamable.Serialization.JsonSerializable.LoadStream.SerializeList< TList > ( string  key,
ref TList  value 
)
inline

Implements Beamable.Serialization.JsonSerializable.IStreamSerializer.

Type Constraints
TList :IList 
TList :new() 

◆ SetValue()

void Beamable.Serialization.JsonSerializable.LoadStream.SetValue ( string  key,
object  value 
)
inline

The documentation for this class was generated from the following file: