public class BitConverter extends NetObject
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.BitConverter
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=10.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.BitConverter
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
BitConverter() |
BitConverter(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static BitConverter |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into BitConverter, a cast assert is made to check if types are compatible. |
static long |
DoubleToInt64Bits(double value) |
static UInt64 |
DoubleToUInt64Bits(double value) |
static byte[] |
GetBytes(boolean value) |
static byte[] |
GetBytes(char value) |
static byte[] |
GetBytes(double value) |
static byte[] |
GetBytes(Half value) |
static byte[] |
GetBytes(int value) |
static byte[] |
GetBytes(Int128 value) |
static byte[] |
GetBytes(long value) |
static byte[] |
GetBytes(short value) |
static byte[] |
GetBytes(Single value) |
static byte[] |
GetBytes(UInt128 value) |
static byte[] |
GetBytes(UInt16 value) |
static byte[] |
GetBytes(UInt32 value) |
static byte[] |
GetBytes(UInt64 value) |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
static short |
HalfToInt16Bits(Half value) |
static UInt16 |
HalfToUInt16Bits(Half value) |
static Half |
Int16BitsToHalf(short value) |
static Single |
Int32BitsToSingle(int value) |
static double |
Int64BitsToDouble(long value) |
void |
setJCOInstance(JCObject instance) |
static int |
SingleToInt32Bits(Single value) |
static UInt32 |
SingleToUInt32Bits(Single value) |
static boolean |
ToBoolean(byte[] value,
int startIndex) |
static boolean |
ToBoolean(JCORefOut dupParam0,
int dupParam1) |
static char |
ToChar(byte[] value,
int startIndex) |
static char |
ToChar(JCORefOut dupParam0,
int dupParam1) |
static double |
ToDouble(byte[] value,
int startIndex) |
static double |
ToDouble(JCORefOut dupParam0,
int dupParam1) |
static Half |
ToHalf(byte[] value,
int startIndex) |
static Half |
ToHalf(JCORefOut dupParam0,
int dupParam1) |
static Int128 |
ToInt128(byte[] value,
int startIndex) |
static Int128 |
ToInt128(JCORefOut dupParam0,
int dupParam1) |
static short |
ToInt16(byte[] value,
int startIndex) |
static short |
ToInt16(JCORefOut dupParam0,
int dupParam1) |
static int |
ToInt32(byte[] value,
int startIndex) |
static int |
ToInt32(JCORefOut dupParam0,
int dupParam1) |
static long |
ToInt64(byte[] value,
int startIndex) |
static long |
ToInt64(JCORefOut dupParam0,
int dupParam1) |
static Single |
ToSingle(byte[] value,
int startIndex) |
static Single |
ToSingle(JCORefOut dupParam0,
int dupParam1) |
static java.lang.String |
ToString(byte[] value) |
static java.lang.String |
ToString(byte[] value,
int startIndex) |
static java.lang.String |
ToString(byte[] value,
int startIndex,
int length) |
static java.lang.String |
ToString(JCORefOut dupParam0) |
static java.lang.String |
ToString(JCORefOut dupParam0,
int dupParam1) |
static java.lang.String |
ToString(JCORefOut dupParam0,
int dupParam1,
int dupParam2) |
static UInt128 |
ToUInt128(byte[] value,
int startIndex) |
static UInt128 |
ToUInt128(JCORefOut dupParam0,
int dupParam1) |
static UInt16 |
ToUInt16(byte[] value,
int startIndex) |
static UInt16 |
ToUInt16(JCORefOut dupParam0,
int dupParam1) |
static UInt32 |
ToUInt32(byte[] value,
int startIndex) |
static UInt32 |
ToUInt32(JCORefOut dupParam0,
int dupParam1) |
static UInt64 |
ToUInt64(byte[] value,
int startIndex) |
static UInt64 |
ToUInt64(JCORefOut dupParam0,
int dupParam1) |
static Half |
UInt16BitsToHalf(UInt16 value) |
static Single |
UInt32BitsToSingle(UInt32 value) |
static double |
UInt64BitsToDouble(UInt64 value) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public BitConverter()
throws java.lang.Throwable
java.lang.Throwablepublic BitConverter(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static BitConverter cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into BitConverter, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedBitConverter instancejava.lang.Throwable - in case of error during cast operationpublic static long DoubleToInt64Bits(double value)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException
public static UInt64 DoubleToUInt64Bits(double value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static byte[] GetBytes(boolean value)
throws java.lang.Throwable
java.lang.Throwablepublic static byte[] GetBytes(char value)
throws java.lang.Throwable,
PlatformNotSupportedException,
ArrayTypeMismatchException
java.lang.ThrowablePlatformNotSupportedExceptionArrayTypeMismatchExceptionpublic static byte[] GetBytes(double value)
throws java.lang.Throwable,
PlatformNotSupportedException,
ArrayTypeMismatchException
java.lang.ThrowablePlatformNotSupportedExceptionArrayTypeMismatchExceptionpublic static byte[] GetBytes(Half value) throws java.lang.Throwable, PlatformNotSupportedException, ArrayTypeMismatchException
java.lang.ThrowablePlatformNotSupportedExceptionArrayTypeMismatchExceptionpublic static byte[] GetBytes(int value)
throws java.lang.Throwable,
PlatformNotSupportedException,
ArrayTypeMismatchException
java.lang.ThrowablePlatformNotSupportedExceptionArrayTypeMismatchExceptionpublic static byte[] GetBytes(Int128 value) throws java.lang.Throwable, PlatformNotSupportedException, ArrayTypeMismatchException
java.lang.ThrowablePlatformNotSupportedExceptionArrayTypeMismatchExceptionpublic static byte[] GetBytes(long value)
throws java.lang.Throwable,
PlatformNotSupportedException,
ArrayTypeMismatchException
java.lang.ThrowablePlatformNotSupportedExceptionArrayTypeMismatchExceptionpublic static byte[] GetBytes(short value)
throws java.lang.Throwable,
PlatformNotSupportedException,
ArrayTypeMismatchException
java.lang.ThrowablePlatformNotSupportedExceptionArrayTypeMismatchExceptionpublic static byte[] GetBytes(Single value) throws java.lang.Throwable, PlatformNotSupportedException, ArrayTypeMismatchException
java.lang.ThrowablePlatformNotSupportedExceptionArrayTypeMismatchExceptionpublic static byte[] GetBytes(UInt128 value) throws java.lang.Throwable, PlatformNotSupportedException, ArrayTypeMismatchException
java.lang.ThrowablePlatformNotSupportedExceptionArrayTypeMismatchExceptionpublic static byte[] GetBytes(UInt16 value) throws java.lang.Throwable, PlatformNotSupportedException, ArrayTypeMismatchException
java.lang.ThrowablePlatformNotSupportedExceptionArrayTypeMismatchExceptionpublic static byte[] GetBytes(UInt32 value) throws java.lang.Throwable, PlatformNotSupportedException, ArrayTypeMismatchException
java.lang.ThrowablePlatformNotSupportedExceptionArrayTypeMismatchExceptionpublic static byte[] GetBytes(UInt64 value) throws java.lang.Throwable, PlatformNotSupportedException, ArrayTypeMismatchException
java.lang.ThrowablePlatformNotSupportedExceptionArrayTypeMismatchExceptionpublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic static short HalfToInt16Bits(Half value) throws java.lang.Throwable
java.lang.Throwablepublic static UInt16 HalfToUInt16Bits(Half value) throws java.lang.Throwable
java.lang.Throwablepublic static Half Int16BitsToHalf(short value) throws java.lang.Throwable
java.lang.Throwablepublic static Single Int32BitsToSingle(int value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static double Int64BitsToDouble(long value)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException
public void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic static int SingleToInt32Bits(Single value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static UInt32 SingleToUInt32Bits(Single value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static boolean ToBoolean(byte[] value,
int startIndex)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
public static boolean ToBoolean(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
public static char ToChar(byte[] value,
int startIndex)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException
public static char ToChar(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static double ToDouble(byte[] value,
int startIndex)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException
public static double ToDouble(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static Half ToHalf(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static Half ToHalf(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static Int128 ToInt128(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
public static Int128 ToInt128(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
public static short ToInt16(byte[] value,
int startIndex)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
public static short ToInt16(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
public static int ToInt32(byte[] value,
int startIndex)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
public static int ToInt32(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
public static long ToInt64(byte[] value,
int startIndex)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
public static long ToInt64(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
public static Single ToSingle(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static Single ToSingle(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static java.lang.String ToString(byte[] value)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException
public static java.lang.String ToString(byte[] value,
int startIndex)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException
public static java.lang.String ToString(byte[] value,
int startIndex,
int length)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException
public static java.lang.String ToString(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
public static java.lang.String ToString(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
public static java.lang.String ToString(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
public static UInt128 ToUInt128(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
public static UInt128 ToUInt128(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
public static UInt16 ToUInt16(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static UInt16 ToUInt16(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static UInt32 ToUInt32(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static UInt32 ToUInt32(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static UInt64 ToUInt64(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static UInt64 ToUInt64(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static Half UInt16BitsToHalf(UInt16 value) throws java.lang.Throwable
java.lang.Throwablepublic static Single UInt32BitsToSingle(UInt32 value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
public static double UInt64BitsToDouble(UInt64 value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException