Method ReadPayload
ReadPayload(AvroSchemaId, ReadOnlySpan<byte>)
Reads the Avro data of a message whose schema ID travels outside it, for example in Confluent's
__value_schema_id header (ConfluentSchemaIdHeader).
public T ReadPayload(AvroSchemaId id, ReadOnlySpan<byte> payload)
Parameters
idAvroSchemaIdThe schema ID.
payloadReadOnlySpan<byte>The Avro data alone, uncompressed.
Returns
- T
Exceptions
- AvroDataException
The resolver does not know the ID, or the data is malformed.