語言

BitOperations.RotateLeft 方法

定義

多載

名稱 Description
RotateLeft(UInt32, Int32)

旋轉指定值後剩餘的位元數。

RotateLeft(UInt64, Int32)

旋轉指定值後剩餘的位元數。

RotateLeft(UIntPtr, Int32)

旋轉指定值後剩餘的位元數。 其行為類似於 x86 指令的 ROL。

RotateLeft(UInt32, Int32)

來源:
BitOperations.cs
來源:
BitOperations.cs
來源:
BitOperations.cs
來源:
BitOperations.cs
來源:
BitOperations.cs

重要

此 API 不符合 CLS 規範。

旋轉指定值後剩餘的位元數。

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

參數

value
UInt32

旋轉的數值。

offset
Int32

旋轉的位元數。 任何超出範圍 [0.31] 的值都視為模 32 的全等值。

傳回

旋轉值。

屬性

備註

此方法在行為上類似於 x86 指令的 ROL。

適用於

RotateLeft(UInt64, Int32)

來源:
BitOperations.cs
來源:
BitOperations.cs
來源:
BitOperations.cs
來源:
BitOperations.cs
來源:
BitOperations.cs

重要

此 API 不符合 CLS 規範。

旋轉指定值後剩餘的位元數。

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

參數

value
UInt64

旋轉的數值。

offset
Int32

旋轉的位元數。 任何超出範圍 [0..63] 的值都被視為模 64 的全餘值。

傳回

旋轉值。

屬性

備註

此方法在行為上類似於 x86 指令的 ROL。

適用於

RotateLeft(UIntPtr, Int32)

來源:
BitOperations.cs
來源:
BitOperations.cs
來源:
BitOperations.cs
來源:
BitOperations.cs
來源:
BitOperations.cs

重要

此 API 不符合 CLS 規範。

旋轉指定值後剩餘的位元數。 其行為類似於 x86 指令的 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

參數

value
UIntPtr

unativeint

旋轉的數值。

offset
Int32

旋轉的位元數。 在 32 位元過程中,任何超出 [0..31] 範圍的值被視為模 32 的全等值;在 64 位元過程中,任何超出 [0..63] 範圍的值則視為模 64 的全等值。

傳回

UIntPtr

unativeint

旋轉值。

屬性

適用於