Table of Contents

Method TryReadHeader

Namespace
AvroSharp.Messages
Assembly
AvroSharp.dll

TryReadHeader(ReadOnlySpan<byte>, out long)

Reads the header of a single-object encoded message.

public static bool TryReadHeader(ReadOnlySpan<byte> message, out long fingerprint)

Parameters

message ReadOnlySpan<byte>

The message.

fingerprint long

The writer schema's CRC-64-AVRO fingerprint (Fingerprint64).

Returns

bool

false when the data is too short or does not start with the marker bytes.