Delen via


IDataReader Interface

Definition

Provides read access to an input stream.

public interface class IDataReader
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(3803512873, 46273, 17172, 164, 184, 251, 129, 58, 47, 39, 94)]
struct IDataReader
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(3803512873, 46273, 17172, 164, 184, 251, 129, 58, 47, 39, 94)]
public interface IDataReader
Public Interface IDataReader
Derived
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Properties

ByteOrder

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

InputStreamOptions

Gets or sets the read options for the input stream.

UnconsumedBufferLength

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

UnicodeEncoding

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

Methods

DetachBuffer()

Detaches a buffer that was previously attached to the reader.

DetachStream()

Detaches a stream that was previously attached to the reader.

LoadAsync(UInt32)

Loads data from the input stream.

ReadBoolean()

Reads a Boolean value from the input stream.

ReadBuffer(UInt32)

Reads a buffer from the input stream.

ReadByte()

Reads a byte value from the input stream.

ReadBytes(Byte[])

Reads an array of byte values from the input stream.

ReadDateTime()

Reads a date and time value from the input stream.

ReadDouble()

Reads a floating-point value from the input stream.

ReadGuid()

Reads a GUID value from the input stream.

ReadInt16()

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

ReadInt32()

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

ReadInt64()

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

ReadSingle()

Reads a floating-point value from the input stream.

ReadString(UInt32)

Reads a string value from the input stream.

ReadTimeSpan()

Reads a time interval from the input stream.

ReadUInt16()

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

ReadUInt32()

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

ReadUInt64()

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

Applies to