Share via


BitRotator.RotateLeft Method

Definition

Overloads

RotateLeft(Byte, Int32)

Rotates the bits of an unsigned byte value to the left

RotateLeft(Int16, Int32)

Rotates the bits of a signed short value to the left

RotateLeft(Int32, Int32)

Rotates the bits of a signed int value to the left

RotateLeft(Int64, Int32)

Rotates the bits of a signed long value to the left

RotateLeft(SByte, Int32)

Rotates the bits of a signed byte value to the left

RotateLeft(UInt16, Int32)

Rotates the bits of an unsigned short value to the left

RotateLeft(UInt32, Int32)

Rotates the bits of an unsigned int value to the left

RotateLeft(UInt64, Int32)

Rotates the bits of an unsigned long value to the left

RotateLeft(Byte, Int32)

Rotates the bits of an unsigned byte value to the left

public:
 static System::Byte RotateLeft(System::Byte value, int count);
public:
 static byte RotateLeft(byte value, int count);
 static byte RotateLeft(byte value, int count);
public static byte RotateLeft (byte value, int count);
static member RotateLeft : byte * int -> byte
Public Shared Function RotateLeft (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

RotateLeft(Int16, Int32)

Rotates the bits of a signed short value to the left

public:
 static short RotateLeft(short value, int count);
public:
 static short RotateLeft(short value, int count);
 static short RotateLeft(short value, int count);
public static short RotateLeft (short value, int count);
static member RotateLeft : int16 * int -> int16
Public Shared Function RotateLeft (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

RotateLeft(Int32, Int32)

Rotates the bits of a signed int value to the left

public:
 static int RotateLeft(int value, int count);
public:
 static int RotateLeft(int value, int count);
 static int RotateLeft(int value, int count);
public static int RotateLeft (int value, int count);
static member RotateLeft : int * int -> int
Public Shared Function RotateLeft (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

RotateLeft(Int64, Int32)

Rotates the bits of a signed long value to the left

public:
 static long RotateLeft(long value, int count);
public:
 static long long RotateLeft(long long value, int count);
 static long RotateLeft(long value, int count);
public static long RotateLeft (long value, int count);
static member RotateLeft : int64 * int -> int64
Public Shared Function RotateLeft (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

RotateLeft(SByte, Int32)

Rotates the bits of a signed byte value to the left

public:
 static System::SByte RotateLeft(System::SByte value, int count);
public:
 static SByte RotateLeft(SByte value, int count);
 static SByte RotateLeft(SByte value, int count);
public static sbyte RotateLeft (sbyte value, int count);
static member RotateLeft : sbyte * int -> sbyte
Public Shared Function RotateLeft (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

RotateLeft(UInt16, Int32)

Rotates the bits of an unsigned short value to the left

public:
 static System::UInt16 RotateLeft(System::UInt16 value, int count);
public:
 static unsigned short RotateLeft(unsigned short value, int count);
 static unsigned short RotateLeft(unsigned short value, int count);
public static ushort RotateLeft (ushort value, int count);
static member RotateLeft : uint16 * int -> uint16
Public Shared Function RotateLeft (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

RotateLeft(UInt32, Int32)

Rotates the bits of an unsigned int value to the left

public:
 static System::UInt32 RotateLeft(System::UInt32 value, int count);
public:
 static unsigned int RotateLeft(unsigned int value, int count);
 static unsigned int RotateLeft(unsigned int value, int count);
public static uint RotateLeft (uint value, int count);
static member RotateLeft : uint32 * int -> uint32
Public Shared Function RotateLeft (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

RotateLeft(UInt64, Int32)

Rotates the bits of an unsigned long value to the left

public:
 static System::UInt64 RotateLeft(System::UInt64 value, int count);
public:
 static unsigned long long RotateLeft(unsigned long long value, int count);
 static unsigned long RotateLeft(unsigned long value, int count);
public static ulong RotateLeft (ulong value, int count);
static member RotateLeft : uint64 * int -> uint64
Public Shared Function RotateLeft (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