Table of Contents

Class Deserializer

Namespace
Mech3DotNet.Exchange
Assembly
Mech3DotNet.dll

Mech3ax exchange format deserializer.

public class Deserializer
Inheritance
Deserializer
Inherited Members

Constructors

Deserializer(Reader, List<TypeConverter>)

public Deserializer(Reader r, List<TypeConverter> genericConverters)

Parameters

r Reader
genericConverters List<TypeConverter>

Methods

DeserializeBool()

public bool DeserializeBool()

Returns

bool

DeserializeBytes()

public byte[] DeserializeBytes()

Returns

byte[]

DeserializeDateTime()

public DateTime DeserializeDateTime()

Returns

DateTime

DeserializeEnum()

public (EnumType, uint) DeserializeEnum()

Returns

(EnumType, uint)

DeserializeF32()

public float DeserializeF32()

Returns

float

DeserializeGeneric<T>()

public Func<T> DeserializeGeneric<T>() where T : notnull

Returns

Func<T>

Type Parameters

T

DeserializeI16()

public short DeserializeI16()

Returns

short

DeserializeI32()

public int DeserializeI32()

Returns

int

DeserializeI8()

public sbyte DeserializeI8()

Returns

sbyte

DeserializeRefOption<T>(Func<T>)

public Func<T?> DeserializeRefOption<T>(Func<T> read) where T : class

Parameters

read Func<T>

Returns

Func<T>

Type Parameters

T

DeserializeString()

public string DeserializeString()

Returns

string

DeserializeStruct()

public IEnumerable<string> DeserializeStruct()

Returns

IEnumerable<string>

DeserializeU16()

public ushort DeserializeU16()

Returns

ushort

DeserializeU32()

public uint DeserializeU32()

Returns

uint

DeserializeU64()

public ulong DeserializeU64()

Returns

ulong

DeserializeU8()

public byte DeserializeU8()

Returns

byte

DeserializeUnitVariant(string)

public uint DeserializeUnitVariant(string name)

Parameters

name string

Returns

uint

DeserializeValOption<T>(Func<T>)

public Func<T?> DeserializeValOption<T>(Func<T> read) where T : struct

Parameters

read Func<T>

Returns

Func<T?>

Type Parameters

T

DeserializeVec<T>(Func<T>)

public Func<List<T>> DeserializeVec<T>(Func<T> read)

Parameters

read Func<T>

Returns

Func<List<T>>

Type Parameters

T

Deserialize<T>(TypeConverter<T>)

public Func<T> Deserialize<T>(TypeConverter<T> converter)

Parameters

converter TypeConverter<T>

Returns

Func<T>

Type Parameters

T