public class BitOperations extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Numerics.BitOperations
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.Numerics.BitOperations
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
BitOperations() |
BitOperations(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static BitOperations |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into BitOperations, a cast assert is made to check if types are compatible. |
static UInt32 |
Crc32C(UInt32 crc,
byte data)
Invokes the .NET member Crc32C.
|
static UInt32 |
Crc32C(UInt32 crc,
UInt16 data)
Invokes the .NET member Crc32C.
|
static UInt32 |
Crc32C(UInt32 crc,
UInt32 data)
Invokes the .NET member Crc32C.
|
static UInt32 |
Crc32C(UInt32 crc,
UInt64 data)
Invokes the .NET member Crc32C.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
static boolean |
IsPow2(int value)
Invokes the .NET member IsPow2.
|
static boolean |
IsPow2(long value)
Invokes the .NET member IsPow2.
|
static boolean |
IsPow2(UInt32 value)
Invokes the .NET member IsPow2.
|
static boolean |
IsPow2(UInt64 value)
Invokes the .NET member IsPow2.
|
static int |
LeadingZeroCount(UInt32 value)
Invokes the .NET member LeadingZeroCount.
|
static int |
LeadingZeroCount(UInt64 value)
Invokes the .NET member LeadingZeroCount.
|
static int |
Log2(UInt32 value)
Invokes the .NET member Log2.
|
static int |
Log2(UInt64 value)
Invokes the .NET member Log2.
|
static int |
PopCount(UInt32 value)
Invokes the .NET member PopCount.
|
static int |
PopCount(UInt64 value)
Invokes the .NET member PopCount.
|
static UInt32 |
RotateLeft(UInt32 value,
int offset)
Invokes the .NET member RotateLeft.
|
static UInt64 |
RotateLeft(UInt64 value,
int offset)
Invokes the .NET member RotateLeft.
|
static UInt32 |
RotateRight(UInt32 value,
int offset)
Invokes the .NET member RotateRight.
|
static UInt64 |
RotateRight(UInt64 value,
int offset)
Invokes the .NET member RotateRight.
|
static UInt32 |
RoundUpToPowerOf2(UInt32 value)
Invokes the .NET member RoundUpToPowerOf2.
|
static UInt64 |
RoundUpToPowerOf2(UInt64 value)
Invokes the .NET member RoundUpToPowerOf2.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
static int |
TrailingZeroCount(int value)
Invokes the .NET member TrailingZeroCount.
|
static int |
TrailingZeroCount(long value)
Invokes the .NET member TrailingZeroCount.
|
static int |
TrailingZeroCount(UInt32 value)
Invokes the .NET member TrailingZeroCount.
|
static int |
TrailingZeroCount(UInt64 value)
Invokes the .NET member TrailingZeroCount.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public BitOperations()
throws java.lang.Throwable
java.lang.Throwablepublic BitOperations(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic static BitOperations cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into BitOperations, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedBitOperations instancejava.lang.Throwable - in case of error during cast operationpublic static UInt32 Crc32C(UInt32 crc, byte data) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
crc - the argument of type UInt32data - the argument of type bytejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic static UInt32 Crc32C(UInt32 crc, UInt16 data) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
crc - the argument of type UInt32data - the argument of type UInt16java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic static UInt32 Crc32C(UInt32 crc, UInt32 data) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException
crc - the argument of type UInt32data - the argument of type UInt32java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic static UInt32 Crc32C(UInt32 crc, UInt64 data) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException
crc - the argument of type UInt32data - the argument of type UInt64java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic static boolean IsPow2(int value)
throws java.lang.Throwable
value - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static boolean IsPow2(long value)
throws java.lang.Throwable
value - the argument of type longjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static boolean IsPow2(UInt32 value) throws java.lang.Throwable
value - the argument of type UInt32java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static boolean IsPow2(UInt64 value) throws java.lang.Throwable
value - the argument of type UInt64java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static int LeadingZeroCount(UInt32 value) throws java.lang.Throwable, NotSupportedException, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException
value - the argument of type UInt32java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itpublic static int LeadingZeroCount(UInt64 value) throws java.lang.Throwable, InvalidOperationException, ArgumentNullException, PlatformNotSupportedException, ArgumentException
value - the argument of type UInt64java.lang.Throwable - if the call fails in the bridge or in the CLRInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itpublic static int Log2(UInt32 value) throws java.lang.Throwable, NotSupportedException, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException
value - the argument of type UInt32java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itpublic static int Log2(UInt64 value) throws java.lang.Throwable, InvalidOperationException, ArgumentNullException, PlatformNotSupportedException, ArgumentException
value - the argument of type UInt64java.lang.Throwable - if the call fails in the bridge or in the CLRInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itpublic static int PopCount(UInt32 value) throws java.lang.Throwable
value - the argument of type UInt32java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static int PopCount(UInt64 value) throws java.lang.Throwable
value - the argument of type UInt64java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static UInt32 RotateLeft(UInt32 value, int offset) throws java.lang.Throwable
value - the argument of type UInt32offset - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static UInt64 RotateLeft(UInt64 value, int offset) throws java.lang.Throwable
value - the argument of type UInt64offset - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static UInt32 RotateRight(UInt32 value, int offset) throws java.lang.Throwable
value - the argument of type UInt32offset - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static UInt64 RotateRight(UInt64 value, int offset) throws java.lang.Throwable
value - the argument of type UInt64offset - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static UInt32 RoundUpToPowerOf2(UInt32 value) throws java.lang.Throwable, InvalidOperationException, ArgumentNullException, PlatformNotSupportedException, ArgumentException
value - the argument of type UInt32java.lang.Throwable - if the call fails in the bridge or in the CLRInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itpublic static UInt64 RoundUpToPowerOf2(UInt64 value) throws java.lang.Throwable, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException
value - the argument of type UInt64java.lang.Throwable - if the call fails in the bridge or in the CLRInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic static int TrailingZeroCount(int value)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
InvalidOperationException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
FormatException
value - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itpublic static int TrailingZeroCount(long value)
throws java.lang.Throwable,
InvalidOperationException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentException
value - the argument of type longjava.lang.Throwable - if the call fails in the bridge or in the CLRInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itpublic static int TrailingZeroCount(UInt32 value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException
value - the argument of type UInt32java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic static int TrailingZeroCount(UInt64 value) throws java.lang.Throwable, NotSupportedException, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException
value - the argument of type UInt64java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises it