Method Read
Read(ReadOnlySpan<byte>)
Reads one framed message whose schema the resolver already knows.
public T Read(ReadOnlySpan<byte> message)
Parameters
messageReadOnlySpan<byte>The whole message: the header and the Avro data, with nothing after it.
Returns
- T
Exceptions
- AvroDataException
The header is missing or malformed, the resolver does not know the ID (ReadAsync(ReadOnlyMemory<byte>, CancellationToken) can fetch it), or the data is malformed or has bytes left over.