Share via


Integer.Reverse(Int32) Method

Definition

Returns the value obtained by reversing the order of the bits in the two's complement binary representation of the specified int value.

[Android.Runtime.Register("reverse", "(I)I", "")]
public static int Reverse (int i);
[<Android.Runtime.Register("reverse", "(I)I", "")>]
static member Reverse : int -> int

Parameters

i
Int32

the value to be reversed

Returns

the value obtained by reversing order of the bits in the specified int value.

Attributes

Remarks

Returns the value obtained by reversing the order of the bits in the two's complement binary representation of the specified int value.

Added in 1.5.

Java documentation for java.lang.Integer.reverse(int).

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