Table of Contents

Method ReadPayload

Namespace
AvroSharp.Messages
Assembly
AvroSharp.dll

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

id AvroSchemaId

The schema ID.

payload ReadOnlySpan<byte>

The Avro data alone, uncompressed.

Returns

T

Exceptions

AvroDataException

The resolver does not know the ID, or the data is malformed.