BitOperations.RotateLeft Method

Definition

Overloads

RotateLeft(UInt32, Int32)

Rotates the specified value left by the specified number of bits.

RotateLeft(UInt64, Int32)

Rotates the specified value left by the specified number of bits.

RotateLeft(UInt32, Int32)

Important

This API is not CLS-compliant.

Rotates the specified value left by the specified number of bits.

public:
 static System::UInt32 RotateLeft(System::UInt32 value, int offset);
[System.CLSCompliant(false)]
public static uint RotateLeft (uint value, int offset);
[<System.CLSCompliant(false)>]
static member RotateLeft : uint32 * int -> uint32
Public Shared Function RotateLeft (value As UInteger, offset As Integer) As UInteger

Parameters

value
UInt32

The value to rotate.

offset
Int32

The number of bits to rotate by. Any value outside the range [0..31] is treated as congruent mod 32.

Returns

UInt32

The rotated value.

Attributes

Remarks

This method is similar in behavior to the x86 instruction ROL.

Applies to

RotateLeft(UInt64, Int32)

Important

This API is not CLS-compliant.

Rotates the specified value left by the specified number of bits.

public:
 static System::UInt64 RotateLeft(System::UInt64 value, int offset);
[System.CLSCompliant(false)]
public static ulong RotateLeft (ulong value, int offset);
[<System.CLSCompliant(false)>]
static member RotateLeft : uint64 * int -> uint64
Public Shared Function RotateLeft (value As ULong, offset As Integer) As ULong

Parameters

value
UInt64

The value to rotate.

offset
Int32

The number of bits to rotate by. Any value outside the range [0..63] is treated as congruent mod 64.

Returns

UInt64

The rotated value.

Attributes

Remarks

This method is similar in behavior to the x86 instruction ROL.

Applies to