Method Deserialize
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
dataReadOnlySpan<byte>The message body.
isNullboolWhether the message has no body; the result is then the default of
T.contextSerializationContextThe topic, the component (key or value) and the headers.
Returns
- T