Namespace: | Sirenix.Serialization |
Assembly: | Sirenix.Serialization |
public abstract class EasyBaseFormatter<T> : BaseFormatter<T>, IFormatter<T>, IFormatter
The type which can be serialized and deserialized by the formatter.
protected EasyBaseFormatter()
protected override sealed void DeserializeImplementation(ref T value, IDataReader reader)
T | value | The uninitialized value to serialize into. This value will have been created earlier using GetUninitializedObject(). |
Sirenix.Serialization.IDataReader | reader | The reader to deserialize with. |
protected abstract void ReadDataEntry(ref T value, string entryName, EntryType entryType, IDataReader reader)
T | value | The value to read into. |
System.String | entryName | The name of the entry. |
EntryType | entryType | The type of the entry. |
Sirenix.Serialization.IDataReader | reader | The reader currently used for deserialization. |
protected override sealed void SerializeImplementation(ref T value, IDataWriter writer)
T | value | The value to serialize. |
Sirenix.Serialization.IDataWriter | writer | The writer to serialize with. |
protected abstract void WriteDataEntries(ref T value, IDataWriter writer)
T | value | The value to serialize. |
Sirenix.Serialization.IDataWriter | writer | The writer currently used for serialization. |