共用方式為


BuffersExtensions.Write<T> 方法

定義

value 的內容寫入至 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))

類型參數

T

ReadOnlySpan<T>專案的型別。

參數

writer
IBufferWriter<T>

要將 value 寫入至其中的緩衝區寫入器。

value
ReadOnlySpan<T>

要寫入至 writer 的唯讀範圍。

例外狀況

writer 短於 value

適用於