Namespace: | Sirenix.Serialization |
Assembly: | Sirenix.Serialization |
public class SerializationNodeDataReader : BaseDataReader, IDataReader, IDisposable
public SerializationNodeDataReader(DeserializationContext context)
DeserializationContext | context |
public List<SerializationNode> Nodes { get; set; }
public override Stream Stream { get; set; }
public override void Dispose()
This call MUST (eventually) be followed by a corresponding call to
This call will change the values of the Sirenix.Serialization.IDataReader.IsInArrayNode, Sirenix.Serialization.IDataReader.CurrentNodeName, Sirenix.Serialization.IDataReader.CurrentNodeId and Sirenix.Serialization.IDataReader.CurrentNodeDepth properties to the correct values for the current array node.
public override bool EnterArray(out long length)
System.Int64 | length | The length of the array that was entered. |
System.Boolean |
|
public override bool EnterNode(out Type type)
System.Type | type |
System.Boolean |
public override bool ExitArray()
System.Boolean |
public override bool ExitNode()
System.Boolean |
public override string GetDataDump()
System.String |
protected override EntryType PeekEntry()
EntryType | The peeked entry. |
public override EntryType PeekEntry(out string name)
System.String | name |
EntryType |
public override void PrepareNewSerializationSession()
public override bool ReadBoolean(out bool value)
System.Boolean | value |
System.Boolean |
public override bool ReadByte(out byte value)
System.Byte | value |
System.Boolean |
public override bool ReadChar(out char value)
System.Char | value |
System.Boolean |
public override bool ReadDecimal(out decimal value)
System.Decimal | value |
System.Boolean |
public override bool ReadDouble(out double value)
System.Double | value |
System.Boolean |
public override bool ReadExternalReference(out Guid guid)
System.Guid | guid |
System.Boolean |
public override bool ReadExternalReference(out int index)
System.Int32 | index |
System.Boolean |
public override bool ReadExternalReference(out string id)
System.String | id |
System.Boolean |
public override bool ReadGuid(out Guid value)
System.Guid | value |
System.Boolean |
public override bool ReadInt16(out short value)
System.Int16 | value |
System.Boolean |
public override bool ReadInt32(out int value)
System.Int32 | value |
System.Boolean |
public override bool ReadInt64(out long value)
System.Int64 | value |
System.Boolean |
public override bool ReadInternalReference(out int id)
System.Int32 | id |
System.Boolean |
public override bool ReadNull()
System.Boolean |
If the call fails (and returns false
), it will skip the current entry value, unless that entry is an EndOfNode or an EndOfArray.
public override bool ReadPrimitiveArray<T>(out T[] array)
where T : struct
T[] | array | The resulting primitive array. |
System.Boolean |
|
T | The element type of the primitive array. Valid element types can be determined using IsPrimitiveArrayType(Type). |
System.ArgumentException | Type + typeof(T).Name + is not a valid primitive array type. |
public override bool ReadSByte(out sbyte value)
System.SByte | value |
System.Boolean |
public override bool ReadSingle(out float value)
System.Single | value |
System.Boolean |
public override bool ReadString(out string value)
System.String | value |
System.Boolean |
protected override EntryType ReadToNextEntry()
EntryType | The next entry. |
public override bool ReadUInt16(out ushort value)
System.UInt16 | value |
System.Boolean |
public override bool ReadUInt32(out uint value)
System.UInt32 | value |
System.Boolean |
public override bool ReadUInt64(out ulong value)
System.UInt64 | value |
System.Boolean |