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

适用于