Table of Contents

Method Deserialize

Namespace
AvroSharp.Confluent
Assembly
AvroSharp.Confluent.dll

Deserialize(ReadOnlySpan<byte>, bool, SerializationContext)

Reads a value without a task once its schema ID's reader is known; until then, and with settings or rules that can run asynchronously, it waits for DeserializeAsync(ReadOnlyMemory<byte>, bool, SerializationContext).

[SuppressMessage("Usage", "VSTHRD002:Avoid problematic synchronous waits", Justification = "Confluent.Kafka's consumer calls deserializers synchronously: it waits only until the schema ID's reader is known, or with settings or rules that can run asynchronously.")]
public T Deserialize(ReadOnlySpan<byte> data, bool isNull, SerializationContext context)

Parameters

data ReadOnlySpan<byte>

The message body.

isNull bool

Whether the message has no body; the result is then the default of T.

context SerializationContext

The topic, the component (key or value) and the headers.

Returns

T