Interface IInputStream
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
IBufferA buffer that is used to return the array of bytes that are read. The return value contains the buffer that holds the results.
count
uintThe number of bytes to read that is less than or equal to the Capacity value.
options
InputStreamOptionsSpecifies 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).