IInputStream IInputStream IInputStream IInputStream Interface

Represents a sequential stream of bytes to be read.

Syntax

Declaration

public interface IInputStreampublic interface IInputStreamPublic Interface IInputStreampublic interface IInputStream

Inheritance Hierarchy

Inherited Members

Inherited methods

Methods summary

Reads data from the stream asynchronously.

Methods

  • ReadAsync(IBuffer, UInt32, InputStreamOptions)
    ReadAsync(IBuffer, UInt32, InputStreamOptions)
    ReadAsync(IBuffer, UInt32, InputStreamOptions)
    ReadAsync(IBuffer, UInt32, InputStreamOptions)

    Reads data from the stream asynchronously.

    public IAsyncOperationWithProgress<IBuffer, uint> ReadAsync(IBuffer buffer, UInt32 count, InputStreamOptions options)public IAsyncOperationWithProgress<IBuffer, uint> ReadAsync(IBuffer buffer, UInt32 count, InputStreamOptions options)Public Function ReadAsync(buffer As IBuffer, count As UInt32, options As InputStreamOptions) As IAsyncOperationWithProgress( Of IBuffer, uint )public IAsyncOperationWithProgress<IBuffer, uint> ReadAsync(IBuffer buffer, UInt32 count, InputStreamOptions options)

    Parameters

    Returns

    • The asynchronous operation.

    Remarks

    Always read data from the buffer returned in the IAsyncOperationWithProgress<TResult, TProgress>. Don't assume that the input buffer contains the data. Depending on the implementation, the data that's read might be placed into the input buffer, or it might be returned in a different buffer. For the input buffer, you don't have to implement the IBuffer interface. Instead, you can create an instance of the Buffer class.

    Also consider reading a buffer into an IInputStream by using the ReadBuffer(UInt32) method of the DataReader class.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.GuidAttribute

Details

Assembly

Windows.Storage.Streams.dll