Class BinaryDeserializer
- Namespace
- Yarhl.IO.Serialization
- Assembly
- Yarhl.dll
Binary deserialization of objects based on their attributes. Equivalent of converting a binary format into an object.
public class BinaryDeserializer
- Inheritance
-
BinaryDeserializer
- Inherited Members
Constructors
BinaryDeserializer(Stream)
Initializes a new instance of the BinaryDeserializer class.
public BinaryDeserializer(Stream stream)
Parameters
stream
StreamThe stream to read from.
BinaryDeserializer(Stream, ITypeFieldNavigator)
Initializes a new instance of the BinaryDeserializer class.
public BinaryDeserializer(Stream stream, ITypeFieldNavigator fieldNavigator)
Parameters
stream
StreamThe stream to read from.
fieldNavigator
ITypeFieldNavigatorThe strategy to iterate the field's type.
Properties
DefaultEndianness
Gets or sets the default endianness for the deserialization.
public EndiannessMode DefaultEndianness { get; set; }
Property Value
Methods
Deserialize(Stream, Type)
Deserialize an object from the binary data of the stream.
public static object Deserialize(Stream stream, Type objType)
Parameters
Returns
- object
A new object deserialized.
Deserialize(Type)
Deserialize an object from the binary data of the stream.
public object Deserialize(Type objType)
Parameters
objType
TypeThe type of the object to deserialize.
Returns
- object
A new object deserialized.
Deserialize<T>()
Deserialize an object from the binary data of the stream.
public T Deserialize<T>()
Returns
- T
A new object deserialized.
Type Parameters
T
The type of the object to deserialize.
Deserialize<T>(Stream)
Deserialize an object from the binary data of the stream.
public static T Deserialize<T>(Stream stream)
Parameters
stream
StreamThe stream to read from.
Returns
- T
A new object deserialized.
Type Parameters
T
The type of the object to deserialize.