Version 3.3.1.2

ArrayFormatter<T> class

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
public sealed class ArrayFormatter<T> : BaseFormatter<T[]>, IFormatter<T[]>, IFormatter
Formatter for all non-primitive one-dimensional arrays.
Inheritance

Type Parameters

T

The element type of the formatted array.

Constructors

ArrayFormatter()
public ArrayFormatter()

Methods

DeserializeImplementation(ref T[], IDataReader)
Provides the actual implementation for deserializing a value of type .
protected override void DeserializeImplementation(ref T[] value, IDataReader reader)
Parameters
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.

GetUninitializedObject()
Returns null.
protected override T[] GetUninitializedObject()
Returns
T[]

A null value.

SerializeImplementation(ref T[], IDataWriter)
Provides the actual implementation for serializing a value of type .
protected override void SerializeImplementation(ref T[] value, IDataWriter writer)
Parameters
T[] value

The value to serialize.

Sirenix.Serialization.IDataWriter writer

The writer to serialize with.