Interface IDeserializer<T>
Defines a deserializer for use with Confluent.Kafka.Consumer`2.
Namespace: Confluent.Kafka
Assembly: cs.temp.dll.dll
Syntax
public interface IDeserializer<T>
Type Parameters
Name | Description |
---|---|
T |
Methods
Deserialize(ReadOnlySpan<Byte>, Boolean, SerializationContext)
Deserialize a message key or value.
Declaration
T Deserialize(ReadOnlySpan<byte> data, bool isNull, SerializationContext context)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<System.Byte> | data | The data to deserialize. |
System.Boolean | isNull | Whether or not the value is null. |
SerializationContext | context | Context relevant to the deserialize operation. |
Returns
Type | Description |
---|---|
T | The deserialized value. |