Bagikan melalui


BuffersExtensions.Write<T> Metode

Definisi

Menulis konten value ke writer.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static void Write(System::Buffers::IBufferWriter<T> ^ writer, ReadOnlySpan<T> value);
public static void Write<T> (this System.Buffers.IBufferWriter<T> writer, ReadOnlySpan<T> value);
static member Write : System.Buffers.IBufferWriter<'T> * ReadOnlySpan<'T> -> unit
<Extension()>
Public Sub Write(Of T) (writer As IBufferWriter(Of T), value As ReadOnlySpan(Of T))

Jenis parameter

T

Jenis item di ReadOnlySpan<T>.

Parameter

writer
IBufferWriter<T>

Penulis buffer untuk menulis value.

value
ReadOnlySpan<T>

Rentang baca-saja yang akan ditulis ke writer.

Pengecualian

writer lebih pendek dari value.

Berlaku untuk