Modifier

Partager via


IBufferWriterExtensions.Write Method

Definition

Overloads

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

Writes a series of items of a specified type into a target IBufferWriter<T> instance.

Write<T>(IBufferWriter<Byte>, T)

Writes a value of a specified type into a target IBufferWriter<T> instance.

Write<T>(IBufferWriter<T>, T)

Writes a value of a specified type into a target IBufferWriter<T> instance.

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

Writes a series of items of a specified type into a target IBufferWriter<T> instance.

public static void Write<T> (this System.Buffers.IBufferWriter<byte> writer, ReadOnlySpan<T> span) where T : struct;
static member Write : System.Buffers.IBufferWriter<byte> * ReadOnlySpan<'T (requires 'T : struct)> -> unit (requires 'T : struct)
<Extension()>
Public Sub Write(Of T As Structure) (writer As IBufferWriter(Of Byte), span As ReadOnlySpan(Of T))

Type Parameters

T

The type of value to write.

Parameters

writer
IBufferWriter<Byte>

The target IBufferWriter<T> instance to write to.

span
ReadOnlySpan<T>

The input ReadOnlySpan<T> to write to writer.

Exceptions

Thrown if writer reaches the end.

Applies to

Write<T>(IBufferWriter<Byte>, T)

Writes a value of a specified type into a target IBufferWriter<T> instance.

public static void Write<T> (this System.Buffers.IBufferWriter<byte> writer, T value) where T : struct;
static member Write : System.Buffers.IBufferWriter<byte> * 'T -> unit (requires 'T : struct)
<Extension()>
Public Sub Write(Of T As Structure) (writer As IBufferWriter(Of Byte), value As T)

Type Parameters

T

The type of value to write.

Parameters

writer
IBufferWriter<Byte>

The target IBufferWriter<T> instance to write to.

value
T

The input value to write to writer.

Exceptions

Thrown if writer reaches the end.

Applies to

Write<T>(IBufferWriter<T>, T)

Writes a value of a specified type into a target IBufferWriter<T> instance.

public static void Write<T> (this System.Buffers.IBufferWriter<T> writer, T value);
static member Write : System.Buffers.IBufferWriter<'T> * 'T -> unit
<Extension()>
Public Sub Write(Of T) (writer As IBufferWriter(Of T), value As T)

Type Parameters

T

The type of value to write.

Parameters

writer
IBufferWriter<T>

The target IBufferWriter<T> instance to write to.

value
T

The input value to write to writer.

Exceptions

Thrown if writer reaches the end.

Applies to