Method Compare
Compare(ReadOnlySpan<byte>, ReadOnlySpan<byte>)
Compares two values encoded with Schema.
public int Compare(ReadOnlySpan<byte> x, ReadOnlySpan<byte> y)
Parameters
xReadOnlySpan<byte>The first value's encoding.
yReadOnlySpan<byte>The second value's encoding.
Returns
- int
-1, 0 or 1, as
xsorts before, with or aftery.
Exceptions
- AvroDataException
The data is malformed, or exceeds the limits.
- AvroException
Two maps are compared.