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>, INatsSerialize<T>, INatsDeserialize<T>

Type Parameters

T
Inheritance
NatsUtf8PrimitivesSerializer<T>
Implements
Inherited Members

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.

Serialize(IBufferWriter<byte>, T)

Serialize value to buffer.