Table of Contents

Method TryReadHeader

Namespace
AvroSharp.Messages
Assembly
AvroSharp.dll

TryReadHeader(ReadOnlySpan<byte>, out AvroSchemaId)

Reads the header of a message in this framing.

public bool TryReadHeader(ReadOnlySpan<byte> message, out AvroSchemaId id)

Parameters

message ReadOnlySpan<byte>

The message.

id AvroSchemaId

The schema ID.

Returns

bool

false when the message is shorter than the header or starts with another magic byte.