BitRotator.RotateRight Method

Definition

Overloads

RotateRight(Byte, Int32)

Rotates the bits of an unsigned byte value to the right

RotateRight(Int16, Int32)

Rotates the bits of a signed short value to the right

RotateRight(Int32, Int32)

Rotates the bits of a signed int value to the right

RotateRight(Int64, Int32)

Rotates the bits of a signed long value to the right

RotateRight(SByte, Int32)

Rotates the bits of a signed byte value to the right

RotateRight(UInt16, Int32)

Rotates the bits of an unsigned short value to the right

RotateRight(UInt32, Int32)

Rotates the bits of an unsigned int value to the right

RotateRight(UInt64, Int32)

Rotates the bits of an unsigned long value to the right

RotateRight(Byte, Int32)

Rotates the bits of an unsigned byte value to the right

public:
 static System::Byte RotateRight(System::Byte value, int count);
public:
 static byte RotateRight(byte value, int count);
 static byte RotateRight(byte value, int count);
public static byte RotateRight (byte value, int count);
static member RotateRight : byte * int -> byte
Public Shared Function RotateRight (value As Byte, count As Integer) As Byte

Parameters

value
Byte

The value to rotate

count
Int32

The number of positions to rotate

Returns

The rotated value

Applies to

RotateRight(Int16, Int32)

Rotates the bits of a signed short value to the right

public:
 static short RotateRight(short value, int count);
public:
 static short RotateRight(short value, int count);
 static short RotateRight(short value, int count);
public static short RotateRight (short value, int count);
static member RotateRight : int16 * int -> int16
Public Shared Function RotateRight (value As Short, count As Integer) As Short

Parameters

value
Int16

The value to rotate

count
Int32

The number of positions to rotate

Returns

The rotated value

Applies to

RotateRight(Int32, Int32)

Rotates the bits of a signed int value to the right

public:
 static int RotateRight(int value, int count);
public:
 static int RotateRight(int value, int count);
 static int RotateRight(int value, int count);
public static int RotateRight (int value, int count);
static member RotateRight : int * int -> int
Public Shared Function RotateRight (value As Integer, count As Integer) As Integer

Parameters

value
Int32

The value to rotate

count
Int32

The number of positions to rotate

Returns

The rotated value

Applies to

RotateRight(Int64, Int32)

Rotates the bits of a signed long value to the right

public:
 static long RotateRight(long value, int count);
public:
 static long long RotateRight(long long value, int count);
 static long RotateRight(long value, int count);
public static long RotateRight (long value, int count);
static member RotateRight : int64 * int -> int64
Public Shared Function RotateRight (value As Long, count As Integer) As Long

Parameters

value
Int64

The value to rotate

count
Int32

The number of positions to rotate

Returns

The rotated value

Applies to

RotateRight(SByte, Int32)

Rotates the bits of a signed byte value to the right

public:
 static System::SByte RotateRight(System::SByte value, int count);
public:
 static SByte RotateRight(SByte value, int count);
 static SByte RotateRight(SByte value, int count);
public static sbyte RotateRight (sbyte value, int count);
static member RotateRight : sbyte * int -> sbyte
Public Shared Function RotateRight (value As SByte, count As Integer) As SByte

Parameters

value
SByte

The value to rotate

count
Int32

The number of positions to rotate

Returns

The rotated value

Applies to

RotateRight(UInt16, Int32)

Rotates the bits of an unsigned short value to the right

public:
 static System::UInt16 RotateRight(System::UInt16 value, int count);
public:
 static unsigned short RotateRight(unsigned short value, int count);
 static unsigned short RotateRight(unsigned short value, int count);
public static ushort RotateRight (ushort value, int count);
static member RotateRight : uint16 * int -> uint16
Public Shared Function RotateRight (value As UShort, count As Integer) As UShort

Parameters

value
UInt16

The value to rotate

count
Int32

The number of positions to rotate

Returns

The rotated value

Applies to

RotateRight(UInt32, Int32)

Rotates the bits of an unsigned int value to the right

public:
 static System::UInt32 RotateRight(System::UInt32 value, int count);
public:
 static unsigned int RotateRight(unsigned int value, int count);
 static unsigned int RotateRight(unsigned int value, int count);
public static uint RotateRight (uint value, int count);
static member RotateRight : uint32 * int -> uint32
Public Shared Function RotateRight (value As UInteger, count As Integer) As UInteger

Parameters

value
UInt32

The value to rotate

count
Int32

The number of positions to rotate

Returns

The rotated value

Applies to

RotateRight(UInt64, Int32)

Rotates the bits of an unsigned long value to the right

public:
 static System::UInt64 RotateRight(System::UInt64 value, int count);
public:
 static unsigned long long RotateRight(unsigned long long value, int count);
 static unsigned long RotateRight(unsigned long value, int count);
public static ulong RotateRight (ulong value, int count);
static member RotateRight : uint64 * int -> uint64
Public Shared Function RotateRight (value As ULong, count As Integer) As ULong

Parameters

value
UInt64

The value to rotate

count
Int32

The number of positions to rotate

Returns

The rotated value

Applies to