Table of Contents

Method Compare

Namespace
AvroSharp.Generic
Assembly
AvroSharp.dll

Compare(ReadOnlySpan<byte>, ReadOnlySpan<byte>)

Compares two values encoded with Schema.

public int Compare(ReadOnlySpan<byte> x, ReadOnlySpan<byte> y)

Parameters

x ReadOnlySpan<byte>

The first value's encoding.

y ReadOnlySpan<byte>

The second value's encoding.

Returns

int

-1, 0 or 1, as x sorts before, with or after y.

Exceptions

AvroDataException

The data is malformed, or exceeds the limits.

AvroException

Two maps are compared.