Condividi tramite


Integer.ReverseBytes(Int32) Method

Definition

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

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

Parameters

i
Int32

the value whose bytes are to be reversed

Returns

the value obtained by reversing the bytes in the specified int value.

Attributes

Remarks

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

Added in 1.5.

Java documentation for java.lang.Integer.reverseBytes(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