Share via


BitOperations.IsPow2 메서드

정의

오버로드

IsPow2(UIntPtr)

지정된 정수 값이 2의 힘인지 여부를 결정합니다.

IsPow2(UInt32)

지정된 UInt32 값이 2의 힘인지 여부를 평가합니다.

IsPow2(UInt64)

지정된 UInt64 값이 2의 힘인지 여부를 평가합니다.

IsPow2(Int64)

지정된 Int64 값이 2의 힘인지 여부를 평가합니다.

IsPow2(Int32)

지정된 Int32 값이 2의 힘인지 여부를 평가합니다.

IsPow2(IntPtr)

지정된 정수 값이 2의 힘인지 여부를 결정합니다.

IsPow2(UIntPtr)

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

중요

이 API는 CLS 규격이 아닙니다.

지정된 정수 값이 2의 힘인지 여부를 결정합니다.

public:
 static bool IsPow2(UIntPtr value);
[System.CLSCompliant(false)]
public static bool IsPow2 (UIntPtr value);
[<System.CLSCompliant(false)>]
static member IsPow2 : unativeint -> bool
Public Shared Function IsPow2 (value As UIntPtr) As Boolean

매개 변수

value
UIntPtr

unativeint

값입니다.

반환

true 값이 2의 힘이면 이고, false 그렇지 않으면.

특성

적용 대상

IsPow2(UInt32)

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

중요

이 API는 CLS 규격이 아닙니다.

지정된 UInt32 값이 2의 힘인지 여부를 평가합니다.

public:
 static bool IsPow2(System::UInt32 value);
[System.CLSCompliant(false)]
public static bool IsPow2 (uint value);
[<System.CLSCompliant(false)>]
static member IsPow2 : uint32 -> bool
Public Shared Function IsPow2 (value As UInteger) As Boolean

매개 변수

value
UInt32

2의 강력한 것으로 평가할 값입니다.

반환

true 지정된 값이 2의 전원이면 이고, false 그렇지 않으면.

특성

적용 대상

IsPow2(UInt64)

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

중요

이 API는 CLS 규격이 아닙니다.

지정된 UInt64 값이 2의 힘인지 여부를 평가합니다.

public:
 static bool IsPow2(System::UInt64 value);
[System.CLSCompliant(false)]
public static bool IsPow2 (ulong value);
[<System.CLSCompliant(false)>]
static member IsPow2 : uint64 -> bool
Public Shared Function IsPow2 (value As ULong) As Boolean

매개 변수

value
UInt64

2의 강력한 것으로 평가할 값입니다.

반환

true 지정된 값이 2의 전원이면 이고, false 그렇지 않으면.

특성

적용 대상

IsPow2(Int64)

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

지정된 Int64 값이 2의 힘인지 여부를 평가합니다.

public:
 static bool IsPow2(long value);
public static bool IsPow2 (long value);
static member IsPow2 : int64 -> bool
Public Shared Function IsPow2 (value As Long) As Boolean

매개 변수

value
Int64

2의 강력한 것으로 평가할 값입니다.

반환

true 지정된 값이 2의 전원이면 이고, false 그렇지 않으면.

적용 대상

IsPow2(Int32)

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

지정된 Int32 값이 2의 힘인지 여부를 평가합니다.

public:
 static bool IsPow2(int value);
public static bool IsPow2 (int value);
static member IsPow2 : int -> bool
Public Shared Function IsPow2 (value As Integer) As Boolean

매개 변수

value
Int32

2의 강력한 것으로 평가할 값입니다.

반환

true 지정된 값이 2의 전원이면 이고, false 그렇지 않으면.

적용 대상

IsPow2(IntPtr)

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

지정된 정수 값이 2의 힘인지 여부를 결정합니다.

public:
 static bool IsPow2(IntPtr value);
public static bool IsPow2 (IntPtr value);
static member IsPow2 : nativeint -> bool
Public Shared Function IsPow2 (value As IntPtr) As Boolean

매개 변수

value
IntPtr

nativeint

값입니다.

반환

true 값이 2의 힘이면 이고, false 그렇지 않으면.

적용 대상