Edit

Share via


BufferWriterExtensions.CreateWriter<TBufferWriter> Method

Definition

Creates a Writer<TBufferWriter> instance for the provided buffer.

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)

Type Parameters

TBufferWriter

The type of the buffer writer.

Parameters

buffer
TBufferWriter

The buffer.

session
SerializerSession

The session.

Returns

A new writer.

Applies to