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
rReadergenericConvertersList<TypeConverter>
Methods
DeserializeBool()
public bool DeserializeBool()
Returns
DeserializeBytes()
public byte[] DeserializeBytes()
Returns
- byte[]
DeserializeDateTime()
public DateTime DeserializeDateTime()
Returns
DeserializeEnum()
public (EnumType, uint) DeserializeEnum()
Returns
DeserializeF32()
public float DeserializeF32()
Returns
DeserializeGeneric<T>()
public Func<T> DeserializeGeneric<T>() where T : notnull
Returns
- Func<T>
Type Parameters
T
DeserializeI16()
public short DeserializeI16()
Returns
DeserializeI32()
public int DeserializeI32()
Returns
DeserializeI8()
public sbyte DeserializeI8()
Returns
DeserializeRefOption<T>(Func<T>)
public Func<T?> DeserializeRefOption<T>(Func<T> read) where T : class
Parameters
readFunc<T>
Returns
- Func<T>
Type Parameters
T
DeserializeString()
public string DeserializeString()
Returns
DeserializeStruct()
public IEnumerable<string> DeserializeStruct()
Returns
DeserializeU16()
public ushort DeserializeU16()
Returns
DeserializeU32()
public uint DeserializeU32()
Returns
DeserializeU64()
public ulong DeserializeU64()
Returns
DeserializeU8()
public byte DeserializeU8()
Returns
DeserializeUnitVariant(string)
public uint DeserializeUnitVariant(string name)
Parameters
namestring
Returns
DeserializeValOption<T>(Func<T>)
public Func<T?> DeserializeValOption<T>(Func<T> read) where T : struct
Parameters
readFunc<T>
Returns
- Func<T?>
Type Parameters
T
DeserializeVec<T>(Func<T>)
public Func<List<T>> DeserializeVec<T>(Func<T> read)
Parameters
readFunc<T>
Returns
Type Parameters
T
Deserialize<T>(TypeConverter<T>)
public Func<T> Deserialize<T>(TypeConverter<T> converter)
Parameters
converterTypeConverter<T>
Returns
- Func<T>
Type Parameters
T