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>) | |
Read<T>(Stream) |
Reads a value of a specified type from a source Stream instance. |
ReadAsync(Stream, Memory<Byte>, CancellationToken) | |
Write(Stream, ReadOnlySpan<Byte>) | |
Write<T>(Stream, T) |
Writes a value of a specified type into a target Stream instance. |
WriteAsync(Stream, ReadOnlyMemory<Byte>, CancellationToken) |