Edit

Share via


StreamExtensions.Write Method

Definition

Overloads

Write(Stream, ReadOnlySpan<Byte>)
Write<T>(Stream, T)

Writes a value of a specified type into a target Stream instance.

Write(Stream, ReadOnlySpan<Byte>)

public static void Write (this System.IO.Stream stream, ReadOnlySpan<byte> buffer);
static member Write : System.IO.Stream * ReadOnlySpan<byte> -> unit
<Extension()>
Public Sub Write (stream As Stream, buffer As ReadOnlySpan(Of Byte))

Parameters

stream
Stream
buffer
ReadOnlySpan<Byte>

Applies to

Write<T>(Stream, T)

Writes a value of a specified type into a target Stream instance.

public static void Write<T> (this System.IO.Stream stream, in T value) where T : struct;
static member Write : System.IO.Stream * 'T -> unit (requires 'T : struct)
<Extension()>
Public Sub Write(Of T As Structure) (stream As Stream, ByRef value As T)

Type Parameters

T

The type of value to write.

Parameters

stream
Stream

The target Stream instance to write to.

value
T

The input value to write to stream.

Applies to