Table of Contents

Method TryDecode

Namespace
AvroSharp.Messages
Assembly
AvroSharp.dll

TryDecode(ReadOnlySpan<byte>, out AvroSchemaId)

Decodes a header value.

public static bool TryDecode(ReadOnlySpan<byte> headerValue, out AvroSchemaId schemaId)

Parameters

headerValue ReadOnlySpan<byte>

The header value.

schemaId AvroSchemaId

The schema ID, a GUID.

Returns

bool

false when the value is not 17 bytes starting with 0x01.