Modifier

Partager via


StreamExtensions Class

Definition

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)

Applies to