Version 2.1.0.0

FormatterEmitter.RuntimeEmittedFormatter<T> class

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
[EmittedFormatter]
public sealed class RuntimeEmittedFormatter<T> : EasyBaseFormatter<T>, IFormatter<T>, IFormatter
Inheritance

Type Parameters

T

Constructors

RuntimeEmittedFormatter(FormatterEmitter.ReadDataEntryMethodDelegate<T>, FormatterEmitter.WriteDataEntriesMethodDelegate<T>)
public RuntimeEmittedFormatter(FormatterEmitter.ReadDataEntryMethodDelegate<T> read, FormatterEmitter.WriteDataEntriesMethodDelegate<T> write)
Parameters
Sirenix.Serialization.FormatterEmitter.ReadDataEntryMethodDelegate<T> read

Sirenix.Serialization.FormatterEmitter.WriteDataEntriesMethodDelegate<T> write

Fields

Read
public readonly FormatterEmitter.ReadDataEntryMethodDelegate<T> Read
Write
public readonly FormatterEmitter.WriteDataEntriesMethodDelegate<T> Write

Methods

ReadDataEntry(ref T, String, EntryType, IDataReader)
protected override void ReadDataEntry(ref T value, string entryName, EntryType entryType, IDataReader reader)
Parameters
T value

System.String entryName

EntryType entryType

Sirenix.Serialization.IDataReader reader

WriteDataEntries(ref T, IDataWriter)
protected override void WriteDataEntries(ref T value, IDataWriter writer)
Parameters
T value

Sirenix.Serialization.IDataWriter writer