共用方式為


BufferWriterExtensions.CreateWriter<TBufferWriter> 方法

定義

Writer<TBufferWriter>建立所提供緩衝區的實例。

public static Orleans.Serialization.Buffers.Writer<TBufferWriter> CreateWriter<TBufferWriter> (this TBufferWriter buffer, Orleans.Serialization.Session.SerializerSession session) where TBufferWriter : System.Buffers.IBufferWriter<byte>;
static member CreateWriter : 'BufferWriter * Orleans.Serialization.Session.SerializerSession -> Orleans.Serialization.Buffers.Writer<'BufferWriter (requires 'BufferWriter :> System.Buffers.IBufferWriter<byte>)> (requires 'BufferWriter :> System.Buffers.IBufferWriter<byte>)
<Extension()>
Public Function CreateWriter(Of TBufferWriter As IBufferWriter(Of Byte)) (buffer As TBufferWriter, session As SerializerSession) As Writer(Of TBufferWriter)

類型參數

TBufferWriter

緩衝區寫入器的型別。

參數

buffer
TBufferWriter

緩衝區。

session
SerializerSession

會話。

傳回

新的寫入器。

適用於