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