Edit

Share via


Reader.Create Method

Definition

Overloads

Create(PooledBuffer, SerializerSession)

Creates a reader for the provided buffer.

Create(PooledBuffer+BufferSlice, SerializerSession)

Creates a reader for the provided buffer.

Create(ReadOnlySequence<Byte>, SerializerSession)

Creates a reader for the provided buffer.

Create(Byte[], SerializerSession)

Creates a reader for the provided buffer.

Create(Stream, SerializerSession)

Creates a reader for the provided input stream.

Create(ReadOnlyMemory<Byte>, SerializerSession)

Creates a reader for the provided buffer.

Create(ReadOnlySpan<Byte>, SerializerSession)

Creates a reader for the provided buffer.

Create(PooledBuffer, SerializerSession)

Creates a reader for the provided buffer.

public static Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.Adaptors.BufferSliceReaderInput> Create (Orleans.Serialization.Buffers.PooledBuffer input, Orleans.Serialization.Session.SerializerSession session);
static member Create : Orleans.Serialization.Buffers.PooledBuffer * Orleans.Serialization.Session.SerializerSession -> Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.Adaptors.BufferSliceReaderInput>
Public Shared Function Create (input As PooledBuffer, session As SerializerSession) As Reader(Of BufferSliceReaderInput)

Parameters

input
PooledBuffer

The input.

session
SerializerSession

The session.

Returns

A new Reader<TInput>.

Applies to

Create(PooledBuffer+BufferSlice, SerializerSession)

Creates a reader for the provided buffer.

public static Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.Adaptors.BufferSliceReaderInput> Create (Orleans.Serialization.Buffers.PooledBuffer.BufferSlice input, Orleans.Serialization.Session.SerializerSession session);
static member Create : Orleans.Serialization.Buffers.PooledBuffer.BufferSlice * Orleans.Serialization.Session.SerializerSession -> Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.Adaptors.BufferSliceReaderInput>
Public Shared Function Create (input As PooledBuffer.BufferSlice, session As SerializerSession) As Reader(Of BufferSliceReaderInput)

Parameters

input
PooledBuffer.BufferSlice

The input.

session
SerializerSession

The session.

Returns

A new Reader<TInput>.

Applies to

Create(ReadOnlySequence<Byte>, SerializerSession)

Creates a reader for the provided buffer.

public static Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.ReadOnlySequenceInput> Create (System.Buffers.ReadOnlySequence<byte> sequence, Orleans.Serialization.Session.SerializerSession session);
static member Create : System.Buffers.ReadOnlySequence<byte> * Orleans.Serialization.Session.SerializerSession -> Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.ReadOnlySequenceInput>
Public Shared Function Create (sequence As ReadOnlySequence(Of Byte), session As SerializerSession) As Reader(Of ReadOnlySequenceInput)

Parameters

sequence
ReadOnlySequence<Byte>

The buffer.

session
SerializerSession

The session.

Returns

A new Reader<TInput>.

Applies to

Create(Byte[], SerializerSession)

Creates a reader for the provided buffer.

public static Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.SpanReaderInput> Create (byte[] buffer, Orleans.Serialization.Session.SerializerSession session);
static member Create : byte[] * Orleans.Serialization.Session.SerializerSession -> Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.SpanReaderInput>
Public Shared Function Create (buffer As Byte(), session As SerializerSession) As Reader(Of SpanReaderInput)

Parameters

buffer
Byte[]

The buffer.

session
SerializerSession

The session.

Returns

A new Reader<TInput>.

Applies to

Create(Stream, SerializerSession)

Creates a reader for the provided input stream.

public static Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.ReaderInput> Create (System.IO.Stream stream, Orleans.Serialization.Session.SerializerSession session);
static member Create : System.IO.Stream * Orleans.Serialization.Session.SerializerSession -> Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.ReaderInput>
Public Shared Function Create (stream As Stream, session As SerializerSession) As Reader(Of ReaderInput)

Parameters

stream
Stream

The stream.

session
SerializerSession

The session.

Returns

A new Reader<TInput>.

Applies to

Create(ReadOnlyMemory<Byte>, SerializerSession)

Creates a reader for the provided buffer.

public static Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.SpanReaderInput> Create (ReadOnlyMemory<byte> buffer, Orleans.Serialization.Session.SerializerSession session);
static member Create : ReadOnlyMemory<byte> * Orleans.Serialization.Session.SerializerSession -> Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.SpanReaderInput>
Public Shared Function Create (buffer As ReadOnlyMemory(Of Byte), session As SerializerSession) As Reader(Of SpanReaderInput)

Parameters

buffer
ReadOnlyMemory<Byte>

The buffer.

session
SerializerSession

The session.

Returns

A new Reader<TInput>.

Applies to

Create(ReadOnlySpan<Byte>, SerializerSession)

Creates a reader for the provided buffer.

public static Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.SpanReaderInput> Create (ReadOnlySpan<byte> buffer, Orleans.Serialization.Session.SerializerSession session);
static member Create : ReadOnlySpan<byte> * Orleans.Serialization.Session.SerializerSession -> Orleans.Serialization.Buffers.Reader<Orleans.Serialization.Buffers.SpanReaderInput>
Public Shared Function Create (buffer As ReadOnlySpan(Of Byte), session As SerializerSession) As Reader(Of SpanReaderInput)

Parameters

buffer
ReadOnlySpan<Byte>

The buffer.

session
SerializerSession

The session.

Returns

A new Reader<TInput>.

Applies to