Table of Contents

Class ByteArraySerializer

Namespace
Stride.Core.Serialization.Serializers
Assembly
Stride.Core.dll

Implements DataSerializer<T> for a byte array.

[DataSerializerGlobal(typeof(ByteArraySerializer), null, DataSerializerGenericMode.None, false, false)]
public class ByteArraySerializer : DataSerializer<byte[]>
Inheritance
ByteArraySerializer
Inherited Members

Methods

PreSerialize(ref byte[], ArchiveMode, SerializationStream)

Performs the first step of serialization or deserialization.

public override void PreSerialize(ref byte[] obj, ArchiveMode mode, SerializationStream stream)

Parameters

obj byte[]

The object to process.

mode ArchiveMode

The serialization mode.

stream SerializationStream

The stream to serialize or deserialize to.

Remarks

Typically, it will instantiate the object if [null], and if it's a collection clear it.

Serialize(ref byte[], ArchiveMode, SerializationStream)

Serializes or deserializes the given object obj.

public override void Serialize(ref byte[] obj, ArchiveMode mode, SerializationStream stream)

Parameters

obj byte[]

The object to serialize or deserialize.

mode ArchiveMode

The serialization mode.

stream SerializationStream

The stream to serialize or deserialize to.