Class ReaderDataInput
Inheritance
System.Object
ReaderDataInput
Assembly: Eco.Core.dll
public class ReaderDataInput : Object, IDataInput
Constructors
Declaration
public ReaderDataInput(BinaryReader reader, long start, long end, string schemaType, ISerializer serializer)
Parameters
| Type |
Name |
Description |
| System.IO.BinaryReader |
reader |
|
| System.Int64 |
start |
|
| System.Int64 |
end |
|
| System.String |
schemaType |
|
| ISerializer |
serializer |
|
Declaration
public ReaderDataInput(BinaryReader reader, string schemaType, ISerializer serializer)
Parameters
| Type |
Name |
Description |
| System.IO.BinaryReader |
reader |
|
| System.String |
schemaType |
|
| ISerializer |
serializer |
|
Properties
Returns count of elements for Data Input value. For string it will be length of string, for enumerable or array number of elements in collection.
If instance is null then return has null value. This way it let to get elements count without objects allocation and instantiation.
Declaration
public Nullable<int> Count { get; }
Property Value
| Type |
Description |
| System.Nullable<System.Int32> |
|
Exceptions
| Type |
Condition |
| System.NotSupportedException |
When doesn't know how to get length for Serializer.
|
Declaration
Property Value
| Type |
Description |
| System.Int64 |
|
Declaration
public BinaryReader Reader { get; }
Property Value
| Type |
Description |
| System.IO.BinaryReader |
|
Declaration
public string SchemaType { get; }
Property Value
| Type |
Description |
| System.String |
|
Declaration
public ISerializer Serializer { get; }
Property Value
Declaration
public long Start { get; }
Property Value
| Type |
Description |
| System.Int64 |
|
Represents Data Input value as string. Currently only implemented for enums and strings.
Declaration
public string StringValue { get; }
Property Value
| Type |
Description |
| System.String |
|
Declaration
public object Value { get; }
Property Value
| Type |
Description |
| System.Object |
|
Methods
Declaration
public void CopyTo(Stream outputStream)
Parameters
| Type |
Name |
Description |
| System.IO.Stream |
outputStream |
|
Declaration
public void ResetPosition()
Implements
Extension Methods