Class BinarySerializationWriter
- Namespace
- Stride.Core.Serialization
- Assembly
- Stride.Core.dll
Implements SerializationStream as a binary writer.
public class BinarySerializationWriter : SerializationStream- Inheritance
- 
      objectBinarySerializationWriter
- Derived
- Inherited Members
- Extension Methods
Constructors
BinarySerializationWriter(Stream)
Initializes a new instance of the BinarySerializationWriter class.
public BinarySerializationWriter(Stream outputStream)Parameters
- outputStreamStream
- The output stream. 
Methods
Flush()
Flushes all recent writes (for better batching). Please note that if only Serialize has been used (no PopTag()), Flush() should be called manually.
public override void Flush()Serialize(ref bool)
Serializes the specified boolean value.
public override void Serialize(ref bool value)Parameters
- valuebool
- The value to serialize 
Serialize(ref byte)
Serializes the specified byte value.
public override void Serialize(ref byte value)Parameters
- valuebyte
- The value to serialize 
Serialize(byte[], int, int)
Serializes the specified byte array.
public override void Serialize(byte[] values, int offset, int count)Parameters
- valuesbyte[]
- The buffer to serialize. 
- offsetint
- The starting offset in the buffer to begin serializing. 
- countint
- The size, in bytes, to serialize. 
Serialize(ref char)
Serializes the specified char value.
public override void Serialize(ref char value)Parameters
- valuechar
- The value to serialize 
Serialize(ref double)
Serializes the specified double value.
public override void Serialize(ref double value)Parameters
- valuedouble
- The value to serialize 
Serialize(ref short)
Serializes the specified short value.
public override void Serialize(ref short value)Parameters
- valueshort
- The value to serialize 
Serialize(ref int)
Serializes the specified integer value.
public override void Serialize(ref int value)Parameters
- valueint
- The value to serialize 
Serialize(ref long)
Serializes the specified long value.
public override void Serialize(ref long value)Parameters
- valuelong
- The value to serialize 
Serialize(ref sbyte)
Serializes the specified signed byte value.
public override void Serialize(ref sbyte value)Parameters
- valuesbyte
- The value to serialize 
Serialize(ref float)
Serializes the specified float value.
public override void Serialize(ref float value)Parameters
- valuefloat
- The value to serialize 
Serialize(Span<byte>)
Serializes the specified memory area.
public override void Serialize(Span<byte> buffer)Parameters
Serialize(ref string)
Serializes the specified string value.
public override void Serialize(ref string value)Parameters
- valuestring
- The value to serialize 
Serialize(ref ushort)
Serializes the specified ushort value.
public override void Serialize(ref ushort value)Parameters
- valueushort
- The value to serialize 
Serialize(ref uint)
Serializes the specified unsigned integer value.
public override void Serialize(ref uint value)Parameters
- valueuint
- The value to serialize 
Serialize(ref ulong)
Serializes the specified unsigned long value.
public override void Serialize(ref ulong value)Parameters
- valueulong
- The value to serialize