StreamExtensions Class
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.
Helpers for working with the Stream type.
public static class StreamExtensions
type StreamExtensions = class
Public Module StreamExtensions
- Inheritance
-
StreamExtensions
Methods
Read(Stream, Span<Byte>) |
Obsolete.
Reads a sequence of bytes from a given Stream instance. |
Read<T>(Stream) |
Reads a value of a specified type from a source Stream instance. |
ReadAsync(Stream, Memory<Byte>, CancellationToken) |
Obsolete.
Asynchronously reads a sequence of bytes from a given Stream instance. |
Write(Stream, ReadOnlySpan<Byte>) |
Obsolete.
Writes a sequence of bytes to a given Stream instance. |
Write<T>(Stream, T) |
Writes a value of a specified type into a target Stream instance. |
WriteAsync(Stream, ReadOnlyMemory<Byte>, CancellationToken) |
Obsolete.
Asynchronously writes a sequence of bytes to a given Stream instance. |