Class BlittableArraySerializer<T>
- Namespace
- Stride.Core.Serialization.Serializers
- Assembly
- Stride.Core.dll
Data serializer for blittable T[].
public class BlittableArraySerializer<T> : ArraySerializer<T>, IDataSerializerGenericInstantiation where T : unmanaged
Type Parameters
T
Generics type of T[].
- Inheritance
-
DataSerializer<T[]>BlittableArraySerializer<T>
- Implements
- Inherited Members
Methods
Initialize(SerializerSelector)
Initializes the specified serializer.
public override void Initialize(SerializerSelector serializerSelector)
Parameters
serializerSelector
SerializerSelectorThe serializer.
Remarks
This method should be thread-safe and OK to call multiple times.
Serialize(ref T[], ArchiveMode, SerializationStream)
Serializes or deserializes the given object obj
.
public override void Serialize(ref T[] array, ArchiveMode mode, SerializationStream stream)
Parameters
array
T[]mode
ArchiveModeThe serialization mode.
stream
SerializationStreamThe stream to serialize or deserialize to.