BlittableArraySerializer<T> Class
Namespace: Stride.Core.Serialization.SerializersAssembly: Stride.Core.dll
Data serializer for blittable T[].
System.Object → DataSerializer → DataSerializer<T[]> → ArraySerializer<T> →
BlittableArraySerializer<T>
Derived from BlittableArraySerializer<T>:
public class BlittableArraySerializer<T> : ArraySerializer<T>, IDataSerializerGenericInstantiation
Type Parameters
Name | Description |
---|---|
T | Generics type of T[]. |
Name | Description | |
---|---|---|
Methods | ||
Initialize(SerializerSelector) | Initializes the specified serializer. |
|
Serialize(ref T[], ArchiveMode, SerializationStream) | Serializes or deserializes the given object |
Methods
Initialize(SerializerSelector)
Initializes the specified serializer.
public override void Initialize(SerializerSelector serializerSelector)
Parameters
Type | Name | Description |
---|---|---|
SerializerSelector | serializerSelector | The serializer. |
Overrides
Stride.Core.Serialization.Serializers.ArraySerializer<T>.Initialize(Stride.Core.Serialization.SerializerSelector)
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[] obj, ArchiveMode mode, SerializationStream stream)
Parameters
Type | Name | Description |
---|---|---|
T[] | obj | |
ArchiveMode | mode | The serialization mode. |
SerializationStream | stream | The stream to serialize or deserialize to. |
Overrides
Stride.Core.Serialization.Serializers.ArraySerializer<T>.Serialize(T[], Stride.Core.Serialization.ArchiveMode, Stride.Core.Serialization.SerializationStream)