Interface IInputStream
Represents a sequential stream of bytes to be read.
Namespace: Windows.Storage.Streams
Assembly: Windows.Storage.Streams.dll
Syntax
public interface IInputStream
Methods
| Improve this Doc View SourceRead(IBuffer, UInt32, InputStreamOptions)
Reads data from the stream.
Declaration
uint Read(IBuffer buffer, uint count, InputStreamOptions options)
Parameters
Type | Name | Description |
---|---|---|
IBuffer | buffer | A buffer that is used to return the array of bytes that are read. The return value contains the buffer that holds the results. |
UInt32 | count | The number of bytes to read that is less than or equal to the Capacity value. |
InputStreamOptions | options | Specifies the type of the asynchronous read operation. |
Returns
Type | Description |
---|---|
UInt32 | 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).