StreamExtensions.Write Method
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.
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
- value
- T
The input value to write to stream
.