Compartilhar via


Writer.Create Método

Definição

Sobrecargas

Create(Byte[], SerializerSession)

Cria um gravador que grava no destino especificado.

Create(MemoryStream, SerializerSession)

Cria um gravador que grava no destino especificado.

Create(Memory<Byte>, SerializerSession)

Cria um gravador que grava no destino especificado.

Create(Span<Byte>, SerializerSession)

Cria um gravador que grava no destino especificado.

Create(Stream, SerializerSession, Int32)

Cria um gravador que grava no destino especificado.

Create<TBufferWriter>(TBufferWriter, SerializerSession)

Cria um gravador que grava no destino especificado.

Create(Byte[], SerializerSession)

Cria um gravador que grava no destino especificado.

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)

Parâmetros

output
Byte[]

O destino.

session
SerializerSession

A sessão.

Retornos

Um novo Writer<TBufferWriter>.

Aplica-se a

Create(MemoryStream, SerializerSession)

Cria um gravador que grava no destino especificado.

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)

Parâmetros

destination
MemoryStream

O destino.

session
SerializerSession

A sessão.

Retornos

Um novo Writer<TBufferWriter>.

Aplica-se a

Create(Memory<Byte>, SerializerSession)

Cria um gravador que grava no destino especificado.

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)

Parâmetros

output
Memory<Byte>

O destino.

session
SerializerSession

A sessão.

Retornos

Um novo Writer<TBufferWriter>.

Aplica-se a

Create(Span<Byte>, SerializerSession)

Cria um gravador que grava no destino especificado.

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)

Parâmetros

output
Span<Byte>

O destino.

session
SerializerSession

A sessão.

Retornos

Um novo Writer<TBufferWriter>.

Aplica-se a

Create(Stream, SerializerSession, Int32)

Cria um gravador que grava no destino especificado.

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)

Parâmetros

destination
Stream

O destino.

session
SerializerSession

A sessão.

sizeHint
Int32

A dica de tamanho.

Retornos

Um novo Writer<TBufferWriter>.

Aplica-se a

Create<TBufferWriter>(TBufferWriter, SerializerSession)

Cria um gravador que grava no destino especificado.

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)

Parâmetros de tipo

TBufferWriter

O tipo de saída do gravador de buffer.

Parâmetros

destination
TBufferWriter

O destino.

session
SerializerSession

A sessão.

Retornos

Um novo Writer<TBufferWriter>.

Aplica-se a