Redigera

Dela via


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(UIntPtr, Int32)

Rotates the specified value left by the specified number of bits. Similar in behavior to the x86 instruction ROL.

RotateLeft(UInt32, Int32)

Source:
BitOperations.cs
Source:
BitOperations.cs
Source:
BitOperations.cs

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

The rotated value.

Attributes

Remarks

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

Applies to

RotateLeft(UInt64, Int32)

Source:
BitOperations.cs
Source:
BitOperations.cs
Source:
BitOperations.cs

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

The rotated value.

Attributes

Remarks

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

Applies to

RotateLeft(UIntPtr, Int32)

Source:
BitOperations.cs
Source:
BitOperations.cs
Source:
BitOperations.cs

Important

This API is not CLS-compliant.

Rotates the specified value left by the specified number of bits. Similar in behavior to the x86 instruction ROL.

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

Parameters

value
UIntPtr

unativeint

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 on a 32-bit process, and any value outside the range [0..63] is treated as congruent mod 64 on a 64-bit process.

Returns

UIntPtr

unativeint

The rotated value.

Attributes

Applies to