Writer.Create 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Create(Byte[], SerializerSession) |
建立寫入至指定目的地的寫入器。 |
Create(MemoryStream, SerializerSession) |
建立寫入至指定目的地的寫入器。 |
Create(Memory<Byte>, SerializerSession) |
建立寫入至指定目的地的寫入器。 |
Create(Span<Byte>, SerializerSession) |
建立寫入至指定目的地的寫入器。 |
Create(Stream, SerializerSession, Int32) |
建立寫入至指定目的地的寫入器。 |
Create<TBufferWriter>(TBufferWriter, SerializerSession) |
建立寫入至指定目的地的寫入器。 |
Create(Byte[], SerializerSession)
建立寫入至指定目的地的寫入器。
public static Orleans.Serialization.Buffers.Writer<Orleans.Serialization.Buffers.Adaptors.SpanBufferWriter> Create (byte[] output, Orleans.Serialization.Session.SerializerSession session);
static member Create : byte[] * Orleans.Serialization.Session.SerializerSession -> Orleans.Serialization.Buffers.Writer<Orleans.Serialization.Buffers.Adaptors.SpanBufferWriter>
Public Shared Function Create (output As Byte(), session As SerializerSession) As Writer(Of SpanBufferWriter)
參數
- output
- Byte[]
目的地。
- session
- SerializerSession
會話。
傳回
適用於
Create(MemoryStream, SerializerSession)
建立寫入至指定目的地的寫入器。
public static Orleans.Serialization.Buffers.Writer<Orleans.Serialization.Buffers.Adaptors.MemoryStreamBufferWriter> Create (System.IO.MemoryStream destination, Orleans.Serialization.Session.SerializerSession session);
static member Create : System.IO.MemoryStream * Orleans.Serialization.Session.SerializerSession -> Orleans.Serialization.Buffers.Writer<Orleans.Serialization.Buffers.Adaptors.MemoryStreamBufferWriter>
Public Shared Function Create (destination As MemoryStream, session As SerializerSession) As Writer(Of MemoryStreamBufferWriter)
參數
- destination
- MemoryStream
目的地。
- session
- SerializerSession
會話。
傳回
適用於
Create(Memory<Byte>, SerializerSession)
建立寫入至指定目的地的寫入器。
public static Orleans.Serialization.Buffers.Writer<Orleans.Serialization.Buffers.Adaptors.MemoryBufferWriter> Create (Memory<byte> output, Orleans.Serialization.Session.SerializerSession session);
static member Create : Memory<byte> * Orleans.Serialization.Session.SerializerSession -> Orleans.Serialization.Buffers.Writer<Orleans.Serialization.Buffers.Adaptors.MemoryBufferWriter>
Public Shared Function Create (output As Memory(Of Byte), session As SerializerSession) As Writer(Of MemoryBufferWriter)
參數
- session
- SerializerSession
會話。
傳回
適用於
Create(Span<Byte>, SerializerSession)
建立寫入至指定目的地的寫入器。
public static Orleans.Serialization.Buffers.Writer<Orleans.Serialization.Buffers.Adaptors.SpanBufferWriter> Create (Span<byte> output, Orleans.Serialization.Session.SerializerSession session);
static member Create : Span<byte> * Orleans.Serialization.Session.SerializerSession -> Orleans.Serialization.Buffers.Writer<Orleans.Serialization.Buffers.Adaptors.SpanBufferWriter>
Public Shared Function Create (output As Span(Of Byte), session As SerializerSession) As Writer(Of SpanBufferWriter)
參數
- session
- SerializerSession
會話。
傳回
適用於
Create(Stream, SerializerSession, Int32)
建立寫入至指定目的地的寫入器。
public static Orleans.Serialization.Buffers.Writer<Orleans.Serialization.Buffers.Adaptors.ArrayStreamBufferWriter> Create (System.IO.Stream destination, Orleans.Serialization.Session.SerializerSession session, int sizeHint = 0);
static member Create : System.IO.Stream * Orleans.Serialization.Session.SerializerSession * int -> Orleans.Serialization.Buffers.Writer<Orleans.Serialization.Buffers.Adaptors.ArrayStreamBufferWriter>
Public Shared Function Create (destination As Stream, session As SerializerSession, Optional sizeHint As Integer = 0) As Writer(Of ArrayStreamBufferWriter)
參數
- destination
- Stream
目的地。
- session
- SerializerSession
會話。
- sizeHint
- Int32
大小提示。
傳回
適用於
Create<TBufferWriter>(TBufferWriter, SerializerSession)
建立寫入至指定目的地的寫入器。
public static Orleans.Serialization.Buffers.Writer<TBufferWriter> Create<TBufferWriter> (TBufferWriter destination, Orleans.Serialization.Session.SerializerSession session) where TBufferWriter : System.Buffers.IBufferWriter<byte>;
static member Create : 'BufferWriter * Orleans.Serialization.Session.SerializerSession -> Orleans.Serialization.Buffers.Writer<'BufferWriter (requires 'BufferWriter :> System.Buffers.IBufferWriter<byte>)> (requires 'BufferWriter :> System.Buffers.IBufferWriter<byte>)
Public Shared Function Create(Of TBufferWriter As IBufferWriter(Of Byte)) (destination As TBufferWriter, session As SerializerSession) As Writer(Of TBufferWriter)
類型參數
- TBufferWriter
緩衝區寫入器輸出類型。
參數
- destination
- TBufferWriter
目的地。
- session
- SerializerSession
會話。