Edit

Share via


ValueSerializer<T> Class

Definition

Serializes and deserializes value types.

public sealed class ValueSerializer<T> where T : struct
type ValueSerializer<'T (requires 'T : struct)> = class
Public NotInheritable Class ValueSerializer(Of T)

Type Parameters

T

The type which this instance operates on.

Inheritance
ValueSerializer<T>

Constructors

ValueSerializer<T>(IValueSerializerProvider, SerializerSessionPool)

Initializes a new instance of the ValueSerializer<T> class.

Methods

Deserialize(ArraySegment<Byte>, T, SerializerSession)

Deserialize a value of type T from source.

Deserialize(ArraySegment<Byte>, T)

Deserialize a value of type T from source.

Deserialize(Byte[], T, SerializerSession)

Deserialize a value of type T from source.

Deserialize(Byte[], T)

Deserialize a value of type T from source.

Deserialize(ReadOnlyMemory<Byte>, T, SerializerSession)

Deserialize a value of type T from source.

Deserialize(ReadOnlyMemory<Byte>, T)

Deserialize a value of type T from source.

Deserialize(ReadOnlySequence<Byte>, T, SerializerSession)

Deserialize a value of type T from source.

Deserialize(ReadOnlySequence<Byte>, T)

Deserialize a value of type T from source.

Deserialize(ReadOnlySpan<Byte>, T, SerializerSession)

Deserialize a value of type T from source.

Deserialize(ReadOnlySpan<Byte>, T)

Deserialize a value of type T from source.

Deserialize(Stream, T, SerializerSession)

Deserialize a value of type T from source.

Deserialize(Stream, T)

Deserialize a value of type T from source.

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

Deserialize a value of type T from source.

Serialize(T, ArraySegment<Byte>)

Serializes the provided value into destination.

Serialize(T, Byte[], SerializerSession)

Serializes the provided value into destination.

Serialize(T, Byte[])

Serializes the provided value into destination.

Serialize(T, Memory<Byte>, SerializerSession)

Serializes the provided value into destination.

Serialize(T, Memory<Byte>)

Serializes the provided value into destination.

Serialize(T, Span<Byte>, SerializerSession)

Serializes the provided value into destination.

Serialize(T, Span<Byte>)

Serializes the provided value into destination.

Serialize(T, Stream, Int32)

Serializes the provided value into destination.

Serialize(T, Stream, SerializerSession, Int32)

Serializes the provided value into destination.

Serialize<TBufferWriter>(T, TBufferWriter, SerializerSession)

Serializes the provided value into destination.

Serialize<TBufferWriter>(T, TBufferWriter)

Serializes the provided value into destination.

Serialize<TBufferWriter>(T, Writer<TBufferWriter>)

Serializes the provided value into destination.

SerializeToArray(T)

Serializes the provided value into a new array.

Applies to