BinaryPrimitives.ReverseEndianness Method

Definition

Overloads

ReverseEndianness(UInt64)

Reverses a primitive value by performing an endianness swap of the specified UInt64 value.

ReverseEndianness(UInt32)

Reverses a primitive value by performing an endianness swap of the specified UInt32 value.

ReverseEndianness(UInt16)

Reverses a primitive value by performing an endianness swap of the specified UInt16 value.

ReverseEndianness(SByte)

Reverses a primitive value by performing an endianness swap of the specified SByte value, which effectively does nothing for an SByte.

ReverseEndianness(Int16)

Reverses a primitive value by performing an endianness swap of the specified Int16 value.

ReverseEndianness(Int32)

Reverses a primitive value by performing an endianness swap of the specified Int32 value.

ReverseEndianness(Byte)

Reverses a primitive value by performing an endianness swap of the specified Byte value, which effectively does nothing for a Byte.

ReverseEndianness(Int64)

Reverses a primitive value by performing an endianness swap of the specified Int64 value.

ReverseEndianness(UInt64)

Important

This API is not CLS-compliant.

Reverses a primitive value by performing an endianness swap of the specified UInt64 value.

public:
 static System::UInt64 ReverseEndianness(System::UInt64 value);
[System.CLSCompliant(false)]
public static ulong ReverseEndianness (ulong value);
static member ReverseEndianness : uint64 -> uint64
Public Shared Function ReverseEndianness (value As ULong) As ULong

Parameters

value
UInt64

The value to reverse.

Returns

The reversed value.

Attributes

ReverseEndianness(UInt32)

Important

This API is not CLS-compliant.

Reverses a primitive value by performing an endianness swap of the specified UInt32 value.

public:
 static System::UInt32 ReverseEndianness(System::UInt32 value);
[System.CLSCompliant(false)]
public static uint ReverseEndianness (uint value);
static member ReverseEndianness : uint32 -> uint32
Public Shared Function ReverseEndianness (value As UInteger) As UInteger

Parameters

value
UInt32

The value to reverse.

Returns

The reversed value.

Attributes

ReverseEndianness(UInt16)

Important

This API is not CLS-compliant.

Reverses a primitive value by performing an endianness swap of the specified UInt16 value.

public:
 static System::UInt16 ReverseEndianness(System::UInt16 value);
[System.CLSCompliant(false)]
public static ushort ReverseEndianness (ushort value);
static member ReverseEndianness : uint16 -> uint16
Public Shared Function ReverseEndianness (value As UShort) As UShort

Parameters

value
UInt16

The value to reverse.

Returns

The reversed value.

Attributes

ReverseEndianness(SByte)

Important

This API is not CLS-compliant.

Reverses a primitive value by performing an endianness swap of the specified SByte value, which effectively does nothing for an SByte.

public:
 static System::SByte ReverseEndianness(System::SByte value);
[System.CLSCompliant(false)]
public static sbyte ReverseEndianness (sbyte value);
static member ReverseEndianness : sbyte -> sbyte
Public Shared Function ReverseEndianness (value As SByte) As SByte

Parameters

value
SByte

The value to reverse.

Returns

The passed-in value, unmodified.

Attributes

Remarks

This method effectively does nothing and was added only for consistency.

ReverseEndianness(Int16)

Reverses a primitive value by performing an endianness swap of the specified Int16 value.

public:
 static short ReverseEndianness(short value);
public static short ReverseEndianness (short value);
static member ReverseEndianness : int16 -> int16
Public Shared Function ReverseEndianness (value As Short) As Short

Parameters

value
Int16

The value to reverse.

Returns

The reversed value.

ReverseEndianness(Int32)

Reverses a primitive value by performing an endianness swap of the specified Int32 value.

public:
 static int ReverseEndianness(int value);
public static int ReverseEndianness (int value);
static member ReverseEndianness : int -> int
Public Shared Function ReverseEndianness (value As Integer) As Integer

Parameters

value
Int32

The value to reverse.

Returns

The reversed value.

ReverseEndianness(Byte)

Reverses a primitive value by performing an endianness swap of the specified Byte value, which effectively does nothing for a Byte.

public:
 static System::Byte ReverseEndianness(System::Byte value);
public static byte ReverseEndianness (byte value);
static member ReverseEndianness : byte -> byte
Public Shared Function ReverseEndianness (value As Byte) As Byte

Parameters

value
Byte

The value to reverse.

Returns

The passed-in value, unmodified.

Remarks

This method effectively does nothing and was added only for consistency.

ReverseEndianness(Int64)

Reverses a primitive value by performing an endianness swap of the specified Int64 value.

public:
 static long ReverseEndianness(long value);
public static long ReverseEndianness (long value);
static member ReverseEndianness : int64 -> int64
Public Shared Function ReverseEndianness (value As Long) As Long

Parameters

value
Int64

The value to reverse.

Returns

The reversed value.

Applies to