Method Read
Read(ReadOnlySpan<byte>)
Reads one message.
public T Read(ReadOnlySpan<byte> message)
Parameters
messageReadOnlySpan<byte>The whole message: the header and the object's encoding, with nothing after it.
Returns
- T
Exceptions
- AvroDataException
The message has no single-object header, the resolver does not know its schema, or its data is malformed or has bytes left over.