Namespace: | Sirenix.Serialization |
Assembly: | Sirenix.Serialization |
public abstract class WeakMinimalBaseFormatter : IFormatter
public WeakMinimalBaseFormatter(Type serializedType)
System.Type | serializedType |
protected readonly bool IsValueType
protected readonly Type SerializedType
public object Deserialize(IDataReader reader)
Sirenix.Serialization.IDataReader | reader |
System.Object |
protected virtual object GetUninitializedObject()
System.Object | An uninitialized object of type |
protected abstract void Read(ref object value, IDataReader reader)
System.Object | value | The value to read into. |
Sirenix.Serialization.IDataReader | reader | The reader to use. |
NOTE that this method only does anything if the serialized type is not a value type.
protected void RegisterReferenceID(object value, IDataReader reader)
System.Object | value | The value to register. |
Sirenix.Serialization.IDataReader | reader | The reader which is currently being used. |
public void Serialize(object value, IDataWriter writer)
System.Object | value | |
Sirenix.Serialization.IDataWriter | writer |
protected abstract void Write(ref object value, IDataWriter writer)
System.Object | value | The value to write from. |
Sirenix.Serialization.IDataWriter | writer | The writer to use. |