InputStreamAdapter.Read Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Read() |
Reads one byte by calling the underlying stream's |
| Read(Byte[]) |
Reads bytes from the underlying stream into an array. |
| Read(Byte[], Int32, Int32) |
Reads bytes from the underlying stream into part of an array. |
Read()
Reads one byte by calling the underlying stream's ReadByte method.
public override int Read();
override this.Read : unit -> int
Returns
The value returned by the underlying stream.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Read(Byte[])
Reads bytes from the underlying stream into an array.
public override int Read(byte[]? bytes);
override this.Read : byte[] -> int
Parameters
- bytes
- Byte[]
The array that receives the data. It cannot be null.
Returns
The underlying read result, except that zero is returned as -1.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Read(Byte[], Int32, Int32)
Reads bytes from the underlying stream into part of an array.
public override int Read(byte[]? bytes, int offset, int length);
override this.Read : byte[] * int * int -> int
Parameters
- bytes
- Byte[]
The array that receives the data. It cannot be null.
- offset
- Int32
The index in bytes at which to start storing data.
- length
- Int32
The maximum number of bytes to request.
Returns
The underlying read result, except that zero is returned as -1, including when length is zero.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.