Compartilhar via


BufferWriterExtensions.CreateWriter<TBufferWriter> Método

Definição

Cria uma Writer<TBufferWriter> instância para o buffer fornecido.

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)

Parâmetros de tipo

TBufferWriter

O tipo do gravador de buffer.

Parâmetros

buffer
TBufferWriter

O buffer.

session
SerializerSession

A sessão.

Retornos

Um novo escritor.

Aplica-se a