Writer.Create Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
Create(Byte[], SerializerSession) |
Crea un writer che scrive nella destinazione specificata. |
Create(MemoryStream, SerializerSession) |
Crea un writer che scrive nella destinazione specificata. |
Create(Memory<Byte>, SerializerSession) |
Crea un writer che scrive nella destinazione specificata. |
Create(Span<Byte>, SerializerSession) |
Crea un writer che scrive nella destinazione specificata. |
Create(Stream, SerializerSession, Int32) |
Crea un writer che scrive nella destinazione specificata. |
Create<TBufferWriter>(TBufferWriter, SerializerSession) |
Crea un writer che scrive nella destinazione specificata. |
Create(Byte[], SerializerSession)
Crea un writer che scrive nella destinazione specificata.
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)
Parametri
- output
- Byte[]
Destinazione.
- session
- SerializerSession
Sessione.
Restituisce
Nuovo oggetto Writer<TBufferWriter>.
Si applica a
Create(MemoryStream, SerializerSession)
Crea un writer che scrive nella destinazione specificata.
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)
Parametri
- destination
- MemoryStream
Destinazione.
- session
- SerializerSession
Sessione.
Restituisce
Nuovo oggetto Writer<TBufferWriter>.
Si applica a
Create(Memory<Byte>, SerializerSession)
Crea un writer che scrive nella destinazione specificata.
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)
Parametri
- session
- SerializerSession
Sessione.
Restituisce
Nuovo oggetto Writer<TBufferWriter>.
Si applica a
Create(Span<Byte>, SerializerSession)
Crea un writer che scrive nella destinazione specificata.
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)
Parametri
- session
- SerializerSession
Sessione.
Restituisce
Nuovo oggetto Writer<TBufferWriter>.
Si applica a
Create(Stream, SerializerSession, Int32)
Crea un writer che scrive nella destinazione specificata.
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)
Parametri
- destination
- Stream
Destinazione.
- session
- SerializerSession
Sessione.
- sizeHint
- Int32
Hint per le dimensioni.
Restituisce
Nuovo oggetto Writer<TBufferWriter>.
Si applica a
Create<TBufferWriter>(TBufferWriter, SerializerSession)
Crea un writer che scrive nella destinazione specificata.
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)
Parametri di tipo
- TBufferWriter
Tipo di output del writer del buffer.
Parametri
- destination
- TBufferWriter
Destinazione.
- session
- SerializerSession
Sessione.
Restituisce
Nuovo oggetto Writer<TBufferWriter>.