Writer.CreatePooled 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.
Overloads
CreatePooled(SerializerSession) |
Creates a writer which writes to a pooled buffer. |
CreatePooled(Stream, SerializerSession, Int32) |
Creates a writer which writes to the specified destination. |
CreatePooled(SerializerSession)
Creates a writer which writes to a pooled buffer.
public static Orleans.Serialization.Buffers.Writer<Orleans.Serialization.Buffers.PooledBuffer> CreatePooled (Orleans.Serialization.Session.SerializerSession session);
static member CreatePooled : Orleans.Serialization.Session.SerializerSession -> Orleans.Serialization.Buffers.Writer<Orleans.Serialization.Buffers.PooledBuffer>
Public Shared Function CreatePooled (session As SerializerSession) As Writer(Of PooledBuffer)
Parameters
- session
- SerializerSession
The session.
Returns
A new Writer<TBufferWriter>.
Applies to
CreatePooled(Stream, SerializerSession, Int32)
Creates a writer which writes to the specified destination.
public static Orleans.Serialization.Buffers.Writer<Orleans.Serialization.Buffers.Adaptors.PoolingStreamBufferWriter> CreatePooled (System.IO.Stream destination, Orleans.Serialization.Session.SerializerSession session, int sizeHint = 0);
static member CreatePooled : System.IO.Stream * Orleans.Serialization.Session.SerializerSession * int -> Orleans.Serialization.Buffers.Writer<Orleans.Serialization.Buffers.Adaptors.PoolingStreamBufferWriter>
Public Shared Function CreatePooled (destination As Stream, session As SerializerSession, Optional sizeHint As Integer = 0) As Writer(Of PoolingStreamBufferWriter)
Parameters
- destination
- Stream
The destination.
- session
- SerializerSession
The session.
- sizeHint
- Int32
The size hint.
Returns
A new Writer<TBufferWriter>.