Table of Contents

Interface IInputStream

Namespace
Windows.Storage.Streams
Assembly
Windows.Storage.Streams.dll

Represents a sequential stream of bytes to be read.

public interface IInputStream
Extension Methods

Methods

Read(IBuffer, uint, InputStreamOptions)

Reads data from the stream.

uint Read(IBuffer buffer, uint count, InputStreamOptions options)

Parameters

buffer IBuffer

A buffer that is used to return the array of bytes that are read. The return value contains the buffer that holds the results.

count uint

The number of bytes to read that is less than or equal to the Capacity value.

options InputStreamOptions

Specifies the type of the asynchronous read operation.

Returns

uint

The number of bytes that were actually read.

Remarks

This method is specific to nanoFramework. The equivalent method in the UWP API is: ReadAsync(IBuffer buffer, UInt32 count, InputStreamOptions options).