confluent-kafka-dotnet
Show / Hide Table of Contents

Interface ISchemaIdDecoder

Interface for decoding schema IDs or GUIDs.

Namespace: Confluent.SchemaRegistry
Assembly: Confluent.SchemaRegistry.dll
Syntax
public interface ISchemaIdDecoder

Methods

Decode(ReadOnlyMemory<byte>, SerializationContext, ref SchemaId)

Decodes a schema ID or GUID from the provided payload.

Declaration
ReadOnlyMemory<byte> Decode(ReadOnlyMemory<byte> payload, SerializationContext context, ref SchemaId schemaId)
Parameters
TypeNameDescription
ReadOnlyMemory<byte>payload

The payload that may contain an encoded schema ID or GUID.

SerializationContextcontext

The serialization context, including headers and the message component type.

SchemaIdschemaId

The SchemaId instance to populate with the decoded value.

Returns
TypeDescription
ReadOnlyMemory<byte>

The remaining payload after the schema ID or GUID has been decoded.

In this article