Namespace: | Sirenix.Serialization |
Assembly: | Sirenix.Serialization |
public abstract class MinimalBaseFormatter<T> : IFormatter<T>, IFormatter
The type which can be serialized and deserialized by the formatter.
protected MinimalBaseFormatter()
protected static readonly bool IsValueType
public Type SerializedType { get; }
public T Deserialize(IDataReader reader)
Sirenix.Serialization.IDataReader | reader | The reader to use. |
T | The deserialized value. |
protected virtual T GetUninitializedObject()
T | An uninitialized object of type |
protected abstract void Read(ref T value, IDataReader reader)
T | value | The value to read into. |
Sirenix.Serialization.IDataReader | reader | The reader to use. |
NOTE that this method only does anything if
protected void RegisterReferenceID(T value, IDataReader reader)
T | value | The value to register. |
Sirenix.Serialization.IDataReader | reader | The reader which is currently being used. |
public void Serialize(T value, IDataWriter writer)
T | value | The value to serialize. |
Sirenix.Serialization.IDataWriter | writer | The writer to use. |
protected abstract void Write(ref T value, IDataWriter writer)
T | value | The value to write from. |
Sirenix.Serialization.IDataWriter | writer | The writer to use. |