Version 3.3.1.2

PrimitiveArrayFormatter<T> class

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
public sealed class PrimitiveArrayFormatter<T> : MinimalBaseFormatter<T[]>, IFormatter<T[]>, IFormatter where T : struct
Formatter for all primitive one-dimensional arrays.
Inheritance

Type Parameters

T

The element type of the formatted array. This type must be an eligible primitive array type, as determined by IsPrimitiveArrayType(Type).

Constructors

PrimitiveArrayFormatter()
public PrimitiveArrayFormatter()

Methods

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

A null value.

Read(ref T[], IDataReader)
Reads into the specified value using the specified reader.
protected override void Read(ref T[] value, IDataReader reader)
Parameters
T[] value

The value to read into.

Sirenix.Serialization.IDataReader reader

The reader to use.

Write(ref T[], IDataWriter)
Writes from the specified value using the specified writer.
protected override void Write(ref T[] value, IDataWriter writer)
Parameters
T[] value

The value to write from.

Sirenix.Serialization.IDataWriter writer

The writer to use.