Show / Hide Table of Contents

Class ReaderDataInput

Inheritance
System.Object
ReaderDataInput
Implements
IDataInput
Namespace: Eco.Core.Serialization.Migrations.DataMigrations
Assembly: Eco.Core.dll
Syntax
public class ReaderDataInput : Object, IDataInput

Constructors

ReaderDataInput(BinaryReader, Int64, Int64, String, ISerializer)

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

ReaderDataInput(BinaryReader, String, ISerializer)

Declaration
public ReaderDataInput(BinaryReader reader, string schemaType, ISerializer serializer)
Parameters
Type Name Description
System.IO.BinaryReader reader
System.String schemaType
ISerializer serializer

Properties

Count

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.

End

Declaration
public long End { get; }
Property Value
Type Description
System.Int64

Reader

Declaration
public BinaryReader Reader { get; }
Property Value
Type Description
System.IO.BinaryReader

SchemaType

Declaration
public string SchemaType { get; }
Property Value
Type Description
System.String

Serializer

Declaration
public ISerializer Serializer { get; }
Property Value
Type Description
ISerializer

Start

Declaration
public long Start { get; }
Property Value
Type Description
System.Int64

StringValue

Represents Data Input value as string. Currently only implemented for enums and strings.

Declaration
public string StringValue { get; }
Property Value
Type Description
System.String

Value

Declaration
public object Value { get; }
Property Value
Type Description
System.Object

Methods

CopyTo(Stream)

Declaration
public void CopyTo(Stream outputStream)
Parameters
Type Name Description
System.IO.Stream outputStream

ResetPosition()

Declaration
public void ResetPosition()

Implements

IDataInput

Extension Methods

PropertyChanges.FirePropertyChanged(Object, String)
PropertyChanges.FirePropertyChanged(Object, String, Object, Object)
PropertyChanges.FirePropertyChanged(Object, MemberChangedBeforeAfterEventArgs)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾