BufferWriterExtensions.CreateWriter<TBufferWriter> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.