Beamable SDK
Public Types | Public Member Functions | Protected Member Functions | Properties | List of all members
Beamable.Serialization.JsonSerializable.JsonSaveStream Class Reference

Class JsonSaveStream is an IStreamSerializer for JsonSerializable Provides serialization of ISerializable objects to json strings More...

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

Public Types

enum  JsonType { None, Array, Object }
 

Public Member Functions

void Init (JsonType jsonType=JsonType.None)
 
void Conclude ()
 
override string ToString ()
 
override void OnRecycle ()
 
object GetValue (string key)
 
bool HasKey (string key)
 
void SetValue (string key, object value)
 
bool Serialize (string key, ref IDictionary< string, object > 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 target)
 
bool Serialize (string key, ref Vector3 target)
 
bool Serialize (string key, ref Vector4 target)
 
bool Serialize (string key, ref Color target)
 
bool Serialize (string key, ref Quaternion target)
 
bool Serialize (string key, ref Gradient target)
 
bool SerializeDictionary< T > (string key, ref Dictionary< string, T > target)
 
bool SerializeInline< T > (string key, ref T value)
 
bool Serialize< T > (string key, ref T value)
 
bool SerializeList< TList > (string key, ref TList value)
 
bool SerializeILL< T > (string key, ref LinkedList< T > list)
 
bool SerializeArray< T > (string key, ref T[] value)
 
- Public Member Functions inherited from Beamable.Pooling.ClassPool< JsonSaveStream >
void Recycle ()
 
void Dispose ()
 

Protected Member Functions

void StartObject ()
 
void TrimComma ()
 
void EndObject ()
 
void AppendSeperator ()
 
void StartArray ()
 
void EndArray ()
 
void AppendKey (string key)
 
void AppendNull ()
 
void AppendBooleanValue (bool value)
 
void AppendValueUsingStringBuilder< T > (T val)
 
void AppendNumericValue (ulong number)
 
void AppendNumericValue (long number)
 
void AppendNumericValue (uint number)
 
void AppendNumericValue (int number)
 
void AppendNumericValue (ushort number)
 
void AppendNumericValue (short number)
 
void AppendNumericValue (byte number)
 
void AppendNumericValue (float number)
 
void AppendNumericValue (double number)
 
void AppendStringValue (string value)
 
void AppendStringValue (StringBuilder value)
 
void AppendEscapedCharacter (char c)
 

Properties

StringBuilder InternalStringBuilder [get]
 
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< JsonSaveStream >
static void ClearList (LinkedList< T > list)
 
static T Spawn ()
 
static void Recycle (ClassPool< T > obj)
 
static void Preallocate (int count)
 
- Public Attributes inherited from Beamable.Pooling.ClassPool< JsonSaveStream >
LinkedListNode< T > poolNode
 
- Static Public Attributes inherited from Beamable.Pooling.ClassPool< JsonSaveStream >
static LinkedList< T > free
 

Detailed Description

Class JsonSaveStream is an IStreamSerializer for JsonSerializable Provides serialization of ISerializable objects to json strings


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