Method Swap
Swap(Int16)
Swaps the byte-order of the provided value.
Declaration
public static short Swap(short value)
Parameters
Type |
Name |
Description |
Int16 |
value |
Value to swap byte-order of. |
Returns
Type |
Description |
Int16 |
Value with swapped byte-order. |
Swap(UInt16)
Swaps the byte-order of the provided value.
Declaration
public static ushort Swap(ushort value)
Parameters
Type |
Name |
Description |
UInt16 |
value |
Value to swap byte-order of. |
Returns
Type |
Description |
UInt16 |
Value with swapped byte-order. |
Swap(Int32)
Swaps the byte-order of the provided value.
Declaration
public static int Swap(int value)
Parameters
Type |
Name |
Description |
Int32 |
value |
Value to swap byte-order of. |
Returns
Type |
Description |
Int32 |
Value with swapped byte-order. |
Swap(UInt32)
Swaps the byte-order of the provided value.
Declaration
public static uint Swap(uint value)
Parameters
Type |
Name |
Description |
UInt32 |
value |
Value to swap byte-order of. |
Returns
Type |
Description |
UInt32 |
Value with swapped byte-order. |
Swap(Int64)
Swaps the byte-order of the provided value.
Declaration
public static long Swap(long value)
Parameters
Type |
Name |
Description |
Int64 |
value |
Value to swap byte-order of. |
Returns
Type |
Description |
Int64 |
Value with swapped byte-order. |
Swap(UInt64)
Swaps the byte-order of the provided value.
Declaration
public static ulong Swap(ulong value)
Parameters
Type |
Name |
Description |
UInt64 |
value |
Value to swap byte-order of. |
Returns
Type |
Description |
UInt64 |
Value with swapped byte-order. |