Table of Contents

Class BufferSerializer

Namespace
Stride.Graphics.Data
Assembly
Stride.Graphics.dll

Serializer for Buffer.

public class BufferSerializer : DataSerializer<Buffer>
Inheritance
BufferSerializer
Inherited Members

Methods

PreSerialize(ref Buffer, ArchiveMode, SerializationStream)

Performs the first step of serialization or deserialization.

public override void PreSerialize(ref Buffer buffer, ArchiveMode mode, SerializationStream stream)

Parameters

buffer Buffer
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 Buffer, ArchiveMode, SerializationStream)

Serializes or deserializes the given object obj.

public override void Serialize(ref Buffer buffer, ArchiveMode mode, SerializationStream stream)

Parameters

buffer Buffer
mode ArchiveMode

The serialization mode.

stream SerializationStream

The stream to serialize or deserialize to.