共用方式為


Short.ReverseBytes(Int16) Method

Definition

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

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

Parameters

i
Int16

the value whose bytes are to be reversed

Returns

the value obtained by reversing (or, equivalently, swapping) the bytes in the specified short value.

Attributes

Remarks

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

Added in 1.5.

Java documentation for java.lang.Short.reverseBytes(short).

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