Writer.CreatePooled 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
CreatePooled(SerializerSession) |
建立寫入至集區緩衝區的寫入器。 |
CreatePooled(Stream, SerializerSession, Int32) |
建立寫入至指定目的地的寫入器。 |
CreatePooled(SerializerSession)
建立寫入至集區緩衝區的寫入器。
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)
參數
- session
- SerializerSession
會話。
傳回
適用於
CreatePooled(Stream, SerializerSession, Int32)
建立寫入至指定目的地的寫入器。
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)
參數
- destination
- Stream
目的地。
- session
- SerializerSession
會話。
- sizeHint
- Int32
大小提示。