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
UTF8 serializer for strings and all the primitives.
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

Deserialize(in ReadOnlySequence<byte>)

Deserialize value from buffer.

Serialize(IBufferWriter<byte>, T)

Serialize value to buffer.