Show / Hide Table of Contents

    Interface IDataReader

    Provides read access to an input stream.

    Namespace: Windows.Storage.Streams
    Assembly: Windows.Storage.Streams.dll
    Syntax
    public interface IDataReader

    Properties

    | Improve this Doc View Source

    ByteOrder

    Gets or sets the byte order of the data in the input stream.

    Declaration
    ByteOrder ByteOrder { get; }
    Property Value
    Type Description
    ByteOrder

    One of the enumeration values.

    Remarks

    nanoFramework doesn't this feature. ByteOrder is always LittleEndian.

    | Improve this Doc View Source

    InputStreamOptions

    Gets or sets the read options for the input stream.

    Declaration
    InputStreamOptions InputStreamOptions { get; set; }
    Property Value
    Type Description
    InputStreamOptions

    One of the enumeration values.

    | Improve this Doc View Source

    UnconsumedBufferLength

    Gets the size of the buffer that has not been read.

    Declaration
    uint UnconsumedBufferLength { get; }
    Property Value
    Type Description
    UInt32

    The size of the buffer that has not been read, in bytes.

    | Improve this Doc View Source

    UnicodeEncoding

    Gets or sets the Unicode character encoding for the input stream.

    Declaration
    UnicodeEncoding UnicodeEncoding { get; }
    Property Value
    Type Description
    UnicodeEncoding

    One of the enumeration values.

    Remarks

    nanoFramework doesn't this feature. UnicodeEncoding is always Utf8.

    Methods

    | Improve this Doc View Source

    DetachStream()

    Detaches a stream that was previously attached to the reader.

    Declaration
    IInputStream DetachStream()
    Returns
    Type Description
    IInputStream

    The detached stream.

    | Improve this Doc View Source

    Load(UInt32)

    Loads data from the input stream.

    Declaration
    uint Load(uint count)
    Parameters
    Type Name Description
    UInt32 count

    The count of bytes to load into the intermediate buffer.

    Returns
    Type Description
    UInt32

    The asynchronous operation.

    | Improve this Doc View Source

    ReadBoolean()

    Reads a Boolean value from the input stream.

    Declaration
    bool ReadBoolean()
    Returns
    Type Description
    Boolean

    The value.

    | Improve this Doc View Source

    ReadBuffer(UInt32)

    Reads a buffer from the input stream.

    Declaration
    IBuffer ReadBuffer(uint length)
    Parameters
    Type Name Description
    UInt32 length

    The length of the buffer, in bytes.

    Returns
    Type Description
    IBuffer

    The buffer.

    | Improve this Doc View Source

    ReadByte()

    Reads a byte value from the input stream.

    Declaration
    byte ReadByte()
    Returns
    Type Description
    Byte

    The value.

    | Improve this Doc View Source

    ReadBytes(Byte[])

    Reads an array of byte values from the input stream.

    Declaration
    void ReadBytes(byte[] value)
    Parameters
    Type Name Description
    Byte[] value

    The array of values.

    | Improve this Doc View Source

    ReadDateTime()

    Reads a date and time value from the input stream.

    Declaration
    DateTime ReadDateTime()
    Returns
    Type Description
    DateTime

    The value.

    | Improve this Doc View Source

    ReadDouble()

    Reads a floating-point value from the input stream.

    Declaration
    double ReadDouble()
    Returns
    Type Description
    Double

    The value.

    | Improve this Doc View Source

    ReadGuid()

    Reads a GUID value from the input stream.

    Declaration
    Guid ReadGuid()
    Returns
    Type Description
    Guid

    The value.

    | Improve this Doc View Source

    ReadInt16()

    Reads a 16-bit integer value from the input stream.

    Declaration
    short ReadInt16()
    Returns
    Type Description
    Int16

    The value.

    | Improve this Doc View Source

    ReadInt32()

    Reads a 32-bit integer value from the input stream.

    Declaration
    int ReadInt32()
    Returns
    Type Description
    Int32

    The value.

    | Improve this Doc View Source

    ReadInt64()

    Reads a 64-bit integer value from the input stream.

    Declaration
    long ReadInt64()
    Returns
    Type Description
    Int64

    The value.

    | Improve this Doc View Source

    ReadSingle()

    Reads a floating-point value from the input stream.

    Declaration
    float ReadSingle()
    Returns
    Type Description
    Single

    The value.

    | Improve this Doc View Source

    ReadString(UInt32)

    Reads a string value from the input stream.

    Declaration
    string ReadString(uint codeUnitCount)
    Parameters
    Type Name Description
    UInt32 codeUnitCount

    The length of the string.

    Returns
    Type Description
    String

    The value.

    | Improve this Doc View Source

    ReadTimeSpan()

    Reads a time interval from the input stream.

    Declaration
    TimeSpan ReadTimeSpan()
    Returns
    Type Description
    TimeSpan

    The value.

    | Improve this Doc View Source

    ReadUInt16()

    Reads a 16-bit unsigned integer from the input stream.

    Declaration
    ushort ReadUInt16()
    Returns
    Type Description
    UInt16

    The value.

    | Improve this Doc View Source

    ReadUInt32()

    Reads a 32-bit unsigned integer from the input stream.

    Declaration
    uint ReadUInt32()
    Returns
    Type Description
    UInt32

    The value.

    | Improve this Doc View Source

    ReadUInt64()

    Reads a 64-bit unsigned integer from the input stream.

    Declaration
    ulong ReadUInt64()
    Returns
    Type Description
    UInt64

    The value.

    Extension Methods

    LogDispatcher.GetCurrentClassLogger(Object)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018 nanoFramework Contributors
    Generated by DocFX