BitOperations.RotateLeft Methode

Definition

Überlädt

Name Beschreibung
RotateLeft(UInt32, Int32)

Dreht den angegebenen Wert um die angegebene Anzahl von Bits nach links.

RotateLeft(UInt64, Int32)

Dreht den angegebenen Wert um die angegebene Anzahl von Bits nach links.

RotateLeft(UIntPtr, Int32)

Dreht den angegebenen Wert um die angegebene Anzahl von Bits nach links. Ähnlich wie im Verhalten der x86-Anweisung ROL.

RotateLeft(UInt32, Int32)

Quelle:
BitOperations.cs
Quelle:
BitOperations.cs
Quelle:
BitOperations.cs
Quelle:
BitOperations.cs
Quelle:
BitOperations.cs

Wichtig

Diese API ist nicht CLS-kompatibel.

Dreht den angegebenen Wert um die angegebene Anzahl von Bits nach links.

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

Parameter

value
UInt32

Der wert, der gedreht werden soll.

offset
Int32

Die Anzahl der Bits, um die gedreht werden soll. Jeder Wert außerhalb des Bereichs [0,.31] wird als congruent mod 32 behandelt.

Gibt zurück

Der gedrehte Wert.

Attribute

Hinweise

Diese Methode ähnelt dem x86-Anweisungs-ROL.

Gilt für:

RotateLeft(UInt64, Int32)

Quelle:
BitOperations.cs
Quelle:
BitOperations.cs
Quelle:
BitOperations.cs
Quelle:
BitOperations.cs
Quelle:
BitOperations.cs

Wichtig

Diese API ist nicht CLS-kompatibel.

Dreht den angegebenen Wert um die angegebene Anzahl von Bits nach links.

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

Parameter

value
UInt64

Der wert, der gedreht werden soll.

offset
Int32

Die Anzahl der Bits, um die gedreht werden soll. Jeder Wert außerhalb des Bereichs [0,.63] wird als congruent mod 64 behandelt.

Gibt zurück

Der gedrehte Wert.

Attribute

Hinweise

Diese Methode ähnelt dem x86-Anweisungs-ROL.

Gilt für:

RotateLeft(UIntPtr, Int32)

Quelle:
BitOperations.cs
Quelle:
BitOperations.cs
Quelle:
BitOperations.cs
Quelle:
BitOperations.cs
Quelle:
BitOperations.cs

Wichtig

Diese API ist nicht CLS-kompatibel.

Dreht den angegebenen Wert um die angegebene Anzahl von Bits nach links. Ähnlich wie im Verhalten der x86-Anweisung 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

Parameter

value
UIntPtr

unativeint

Der wert, der gedreht werden soll.

offset
Int32

Die Anzahl der Bits, um die gedreht werden soll. Jeder Wert außerhalb des Bereichs [0,.31] wird bei einem 32-Bit-Prozess als congruent mod 32 behandelt, und jeder Wert außerhalb des Bereichs [0,.63] wird bei einem 64-Bit-Prozess als congruent mod 64 behandelt.

Gibt zurück

UIntPtr

unativeint

Der gedrehte Wert.

Attribute

Gilt für: