Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
KafkaAvroDeserializer.cs
public T Deserialize(ReadOnlySpan<byte> data, bool isNull, SerializationContext context)
{
if (data.IsEmpty)
{
return default(T);
}
return (T) this.serializer.Deserialize(new MemoryStream(data.ToArray()), typeof(T), CancellationToken.None);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment