StreamExtensions Class |
Namespace: Rackspace.Threading
Name | Description | |
---|---|---|
CopyToAsync(Stream, Stream) |
Asynchronously reads the bytes from a source stream and writes them to a destination stream.
| |
CopyToAsync(Stream, Stream, Int32) |
Asynchronously reads the bytes from a source stream and writes them to a destination stream,
using a specified buffer size.
| |
CopyToAsync(Stream, Stream, Int32, CancellationToken) |
Asynchronously reads the bytes from a source stream and writes them to a destination stream,
using a specified buffer size and cancellation token.
| |
FlushAsync(Stream) |
Asynchronously clears all buffers for a stream and causes any buffered data to be written to the underlying device.
| |
FlushAsync(Stream, CancellationToken) |
Asynchronously clears all buffers for a stream and causes any buffered data to be written to the underlying device,
and monitors cancellation requests.
| |
ReadAsync(Stream, Byte, Int32, Int32) |
Asynchronously reads a sequence of bytes from a stream and advances the position within the stream by the number of bytes read.
| |
ReadAsync(Stream, Byte, Int32, Int32, CancellationToken) |
Asynchronously reads a sequence of bytes from a stream, advances the position within the stream by the number of bytes read,
and monitors cancellation requests.
| |
WriteAsync(Stream, Byte, Int32, Int32) |
Asynchronously writes a sequence of bytes to a stream and advances the position within the stream by the number of bytes written.
| |
WriteAsync(Stream, Byte, Int32, Int32, CancellationToken) |
Asynchronously writes a sequence of bytes to a stream, advances the position within the stream by the number of bytes written,
and monitors cancellation requests.
|