Edytuj

Udostępnij za pośrednictwem


ObjectSerializer.Deserialize Method

Definition

Overloads

Deserialize(ReadOnlyMemory<Byte>, SerializerSession, Type)

Deserialize a value of type type from source.

Deserialize(Stream, SerializerSession, Type)

Deserialize a value of type type from source.

Deserialize(Byte[], SerializerSession, Type)

Deserialize a value of type type from source.

Deserialize(ReadOnlySequence<Byte>, SerializerSession, Type)

Deserialize a value of type type from source.

Deserialize(ArraySegment<Byte>, SerializerSession, Type)

Deserialize a value of type type from source.

Deserialize(ReadOnlySpan<Byte>, SerializerSession, Type)

Deserialize a value of type type from source.

Deserialize(ReadOnlyMemory<Byte>, Type)

Deserialize a value of type type from source.

Deserialize(Stream, Type)

Deserialize a value of type type from source.

Deserialize(Byte[], Type)

Deserialize a value of type type from source.

Deserialize(ReadOnlySequence<Byte>, Type)

Deserialize a value of type type from source.

Deserialize(ArraySegment<Byte>, Type)

Deserialize a value of type type from source.

Deserialize(ReadOnlySpan<Byte>, Type)

Deserialize a value of type type from source.

Deserialize<TInput>(Reader<TInput>, Type)

Deserialize a value of type type from source.

Deserialize(ReadOnlyMemory<Byte>, SerializerSession, Type)

Deserialize a value of type type from source.

public object Deserialize (ReadOnlyMemory<byte> source, Orleans.Serialization.Session.SerializerSession session, Type type);
member this.Deserialize : ReadOnlyMemory<byte> * Orleans.Serialization.Session.SerializerSession * Type -> obj
Public Function Deserialize (source As ReadOnlyMemory(Of Byte), session As SerializerSession, type As Type) As Object

Parameters

source
ReadOnlyMemory<Byte>

The source buffer.

session
SerializerSession

The serializer session.

type
Type

The expected type of the value.

Returns

The deserialized value.

Applies to

Deserialize(Stream, SerializerSession, Type)

Deserialize a value of type type from source.

public object Deserialize (System.IO.Stream source, Orleans.Serialization.Session.SerializerSession session, Type type);
member this.Deserialize : System.IO.Stream * Orleans.Serialization.Session.SerializerSession * Type -> obj
Public Function Deserialize (source As Stream, session As SerializerSession, type As Type) As Object

Parameters

source
Stream

The source buffer.

session
SerializerSession

The serializer session.

type
Type

The expected type of the value.

Returns

The deserialized value.

Applies to

Deserialize(Byte[], SerializerSession, Type)

Deserialize a value of type type from source.

public object Deserialize (byte[] source, Orleans.Serialization.Session.SerializerSession session, Type type);
member this.Deserialize : byte[] * Orleans.Serialization.Session.SerializerSession * Type -> obj
Public Function Deserialize (source As Byte(), session As SerializerSession, type As Type) As Object

Parameters

source
Byte[]

The source buffer.

session
SerializerSession

The serializer session.

type
Type

The expected type of the value.

Returns

The deserialized value.

Applies to

Deserialize(ReadOnlySequence<Byte>, SerializerSession, Type)

Deserialize a value of type type from source.

public object Deserialize (System.Buffers.ReadOnlySequence<byte> source, Orleans.Serialization.Session.SerializerSession session, Type type);
member this.Deserialize : System.Buffers.ReadOnlySequence<byte> * Orleans.Serialization.Session.SerializerSession * Type -> obj
Public Function Deserialize (source As ReadOnlySequence(Of Byte), session As SerializerSession, type As Type) As Object

Parameters

source
ReadOnlySequence<Byte>

The source buffer.

session
SerializerSession

The serializer session.

type
Type

The expected type of the value.

Returns

The deserialized value.

Applies to

Deserialize(ArraySegment<Byte>, SerializerSession, Type)

Deserialize a value of type type from source.

public object Deserialize (ArraySegment<byte> source, Orleans.Serialization.Session.SerializerSession session, Type type);
member this.Deserialize : ArraySegment<byte> * Orleans.Serialization.Session.SerializerSession * Type -> obj
Public Function Deserialize (source As ArraySegment(Of Byte), session As SerializerSession, type As Type) As Object

Parameters

source
ArraySegment<Byte>

The source buffer.

session
SerializerSession

The serializer session.

type
Type

The expected type of the value.

Returns

The deserialized value.

Applies to

Deserialize(ReadOnlySpan<Byte>, SerializerSession, Type)

Deserialize a value of type type from source.

public object Deserialize (ReadOnlySpan<byte> source, Orleans.Serialization.Session.SerializerSession session, Type type);
member this.Deserialize : ReadOnlySpan<byte> * Orleans.Serialization.Session.SerializerSession * Type -> obj
Public Function Deserialize (source As ReadOnlySpan(Of Byte), session As SerializerSession, type As Type) As Object

Parameters

source
ReadOnlySpan<Byte>

The source buffer.

session
SerializerSession

The serializer session.

type
Type

The expected type of the value.

Returns

The deserialized value.

Applies to

Deserialize(ReadOnlyMemory<Byte>, Type)

Deserialize a value of type type from source.

public object Deserialize (ReadOnlyMemory<byte> source, Type type);
member this.Deserialize : ReadOnlyMemory<byte> * Type -> obj
Public Function Deserialize (source As ReadOnlyMemory(Of Byte), type As Type) As Object

Parameters

source
ReadOnlyMemory<Byte>

The source buffer.

type
Type

The expected type of the value.

Returns

The deserialized value.

Applies to

Deserialize(Stream, Type)

Deserialize a value of type type from source.

public object Deserialize (System.IO.Stream source, Type type);
member this.Deserialize : System.IO.Stream * Type -> obj
Public Function Deserialize (source As Stream, type As Type) As Object

Parameters

source
Stream

The source buffer.

type
Type

The expected type of the value.

Returns

The deserialized value.

Applies to

Deserialize(Byte[], Type)

Deserialize a value of type type from source.

public object Deserialize (byte[] source, Type type);
member this.Deserialize : byte[] * Type -> obj
Public Function Deserialize (source As Byte(), type As Type) As Object

Parameters

source
Byte[]

The source buffer.

type
Type

The expected type of the value.

Returns

The deserialized value.

Applies to

Deserialize(ReadOnlySequence<Byte>, Type)

Deserialize a value of type type from source.

public object Deserialize (System.Buffers.ReadOnlySequence<byte> source, Type type);
member this.Deserialize : System.Buffers.ReadOnlySequence<byte> * Type -> obj
Public Function Deserialize (source As ReadOnlySequence(Of Byte), type As Type) As Object

Parameters

source
ReadOnlySequence<Byte>

The source buffer.

type
Type

The expected type of the value.

Returns

The deserialized value.

Applies to

Deserialize(ArraySegment<Byte>, Type)

Deserialize a value of type type from source.

public object Deserialize (ArraySegment<byte> source, Type type);
member this.Deserialize : ArraySegment<byte> * Type -> obj
Public Function Deserialize (source As ArraySegment(Of Byte), type As Type) As Object

Parameters

source
ArraySegment<Byte>

The source buffer.

type
Type

The expected type of the value.

Returns

The deserialized value.

Applies to

Deserialize(ReadOnlySpan<Byte>, Type)

Deserialize a value of type type from source.

public object Deserialize (ReadOnlySpan<byte> source, Type type);
member this.Deserialize : ReadOnlySpan<byte> * Type -> obj
Public Function Deserialize (source As ReadOnlySpan(Of Byte), type As Type) As Object

Parameters

source
ReadOnlySpan<Byte>

The source buffer.

type
Type

The expected type of the value.

Returns

The deserialized value.

Applies to

Deserialize<TInput>(Reader<TInput>, Type)

Deserialize a value of type type from source.

public object Deserialize<TInput> (ref Orleans.Serialization.Buffers.Reader<TInput> source, Type type);
member this.Deserialize : Reader * Type -> obj
Public Function Deserialize(Of TInput) (ByRef source As Reader(Of TInput), type As Type) As Object

Type Parameters

TInput

The reader input type.

Parameters

source
Reader<TInput>

The source buffer.

type
Type

The expected type of the value.

Returns

The deserialized value.

Applies to