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
Type | Name | Description |
---|---|---|
ReadOnlyMemory<byte> | payload | The payload that may contain an encoded schema ID or GUID. |
SerializationContext | context | The serialization context, including headers and the message component type. |
SchemaId | schemaId | The SchemaId instance to populate with the decoded value. |
Returns
Type | Description |
---|---|
ReadOnlyMemory<byte> | The remaining payload after the schema ID or GUID has been decoded. |