Table of Contents

Class NatsUtf8PrimitivesSerializer<T>

Namespace
NATS.Client.Core
Assembly
NATS.Client.Core.dll

UTF8 serializer for strings and all the primitives.

public class NatsUtf8PrimitivesSerializer<T> : INatsSerializer<T>, INatsSerializerWithContext<T>, INatsSerializeWithContext<T>, INatsSerialize<T>, INatsDeserializeWithContext<T>, INatsDeserialize<T>

Type Parameters

T
Inheritance
NatsUtf8PrimitivesSerializer<T>
Implements
Inherited Members
Extension Methods

Remarks

Supported types are string, DateTime, DateTimeOffset, Guid, TimeSpan, bool, byte, decimal, double, float, int, long, sbyte, short, uint and ulong.

Constructors

NatsUtf8PrimitivesSerializer(INatsSerializer<T>?)

Creates a new instance of NatsUtf8PrimitivesSerializer<T>.

Fields

Default

Methods

CombineWith(INatsSerializer<T>?)

Combines the current serializer with the specified serializer.

Deserialize(in ReadOnlySequence<byte>)

Deserialize value from buffer.

Deserialize(in ReadOnlySequence<byte>, in NatsMsgContext)

Deserialize value from buffer with message context.

Serialize(IBufferWriter<byte>, T)

Serialize value to buffer.

Serialize(IBufferWriter<byte>, T, in NatsMsgContext)

Serialize value to buffer with message context.