BinarySerializer.Read_T_(Stream,BinarySerializationContext).md

March 19, 2022 ยท View on GitHub

DefaultEcs

DefaultEcs.Serialization.BinarySerializer

BinarySerializer.Read(Stream, BinarySerializationContext) Method

Read an object of type T from the given stream.

public static T Read<T>(System.IO.Stream stream, DefaultEcs.Serialization.BinarySerializationContext context);

Type parameters

T

The type of the object deserialized.

Parameters

stream System.IO.Stream

The System.IO.Stream instance from which the object is to be deserialized.

context BinarySerializationContext

The BinarySerializationContext used to convert type during deserialization.

Returns

T
The object deserialized.

Exceptions

System.ArgumentNullException
stream is null.