BufferedReadStream.ReadAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ReadAsync(Memory<Byte>, CancellationToken) | |
ReadAsync(Byte[], Int32, Int32, CancellationToken) |
ReadAsync(Memory<Byte>, CancellationToken)
- Source:
- BufferedReadStream.cs
从当前流异步读取字节的序列,将流中的位置提升读取的字节数,并监视取消请求。
public override System.Threading.Tasks.ValueTask<int> ReadAsync (Memory<byte> buffer, System.Threading.CancellationToken cancellationToken);
override this.ReadAsync : Memory<byte> * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<int>
Public Overrides Function ReadAsync (buffer As Memory(Of Byte), cancellationToken As CancellationToken) As ValueTask(Of Integer)
参数
- cancellationToken
- CancellationToken
返回
适用于
ReadAsync(Byte[], Int32, Int32, CancellationToken)
- Source:
- BufferedReadStream.cs
- Source:
- BufferedReadStream.cs
- Source:
- BufferedReadStream.cs
从当前流异步读取字节的序列,将流中的位置提升读取的字节数,并监视取消请求。
public:
override System::Threading::Tasks::Task<int> ^ ReadAsync(cli::array <System::Byte> ^ buffer, int offset, int count, System::Threading::CancellationToken cancellationToken);
public override System.Threading.Tasks.Task<int> ReadAsync (byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken);
override this.ReadAsync : byte[] * int * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
Public Overrides Function ReadAsync (buffer As Byte(), offset As Integer, count As Integer, cancellationToken As CancellationToken) As Task(Of Integer)
参数
- buffer
- Byte[]
- offset
- Int32
- count
- Int32
- cancellationToken
- CancellationToken