Table of Contents

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 Stream

The stream to read from.

BinaryDeserializer(Stream, ITypeFieldNavigator)

Initializes a new instance of the BinaryDeserializer class.

public BinaryDeserializer(Stream stream, ITypeFieldNavigator fieldNavigator)

Parameters

stream Stream

The stream to read from.

fieldNavigator ITypeFieldNavigator

The 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

EndiannessMode

Methods

Deserialize(Stream, Type)

Deserialize an object from the binary data of the stream.

public static object Deserialize(Stream stream, Type objType)

Parameters

stream Stream

The stream to read from.

objType Type

The type of the object to deserialize.

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 Type

The 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 Stream

The stream to read from.

Returns

T

A new object deserialized.

Type Parameters

T

The type of the object to deserialize.