Share via


Byte.CompareUnsigned(SByte, SByte) Method

Definition

Compares two byte values numerically treating the values as unsigned.

[Android.Runtime.Register("compareUnsigned", "(BB)I", "", ApiSince=31)]
public static int CompareUnsigned (sbyte x, sbyte y);
[<Android.Runtime.Register("compareUnsigned", "(BB)I", "", ApiSince=31)>]
static member CompareUnsigned : sbyte * sbyte -> int

Parameters

x
SByte

the first byte to compare

y
SByte

the second byte to compare

Returns

the value 0 if x == y; a value less than 0 if x < y as unsigned values; and a value greater than 0 if x > y as unsigned values

Attributes

Remarks

Compares two byte values numerically treating the values as unsigned.

Added in 9.

Java documentation for java.lang.Byte.compareUnsigned(byte, byte).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to