Provides a basic implementation of the ISerializer interface using a binary format.
public sealed class BinarySerializer :
DefaultEcs.Serialization.ISerializer
Inheritance System.Object 🡒 BinarySerializer
Implements ISerializer
Constructors | |
---|---|
BinarySerializer() | Initializes a new instance of the BinarySerializer class. |
BinarySerializer(BinarySerializationContext) | Initializes a new instance of the BinarySerializer class. |
BinarySerializer(Predicate<Type>) | Initializes a new instance of the BinarySerializer class. |
BinarySerializer(Predicate<Type>, BinarySerializationContext) | Initializes a new instance of the BinarySerializer class. |
Methods | |
---|---|
Deserialize(Stream) | Deserializes a World instance from the given System.IO.Stream. |
Deserialize(Stream, World) | Deserializes Entity instances with their components from the given System.IO.Stream into the given World. |
Read<T>(Stream) | Read an object of type T from the given stream. |
Read<T>(Stream, BinarySerializationContext) | Read an object of type T from the given stream. |
Serialize(Stream, World) | Serializes the given World into the provided System.IO.Stream. |
Serialize(Stream, IEnumerable<Entity>) | Serializes the given Entity instances with their components into the provided System.IO.Stream. |
Write<T>(Stream, T) | Writes an object of type T on the given stream. |
Write<T>(Stream, T, BinarySerializationContext) | Writes an object of type T on the given stream. |