Package system
Class BitConverter
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.BitConverter
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class BitConverter extends NetObject
The base .NET class managing System.BitConverter, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.BitConverter
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.StringassemblyShortNameAssembly name: System.Private.CoreLibstatic java.lang.StringclassNameQualified class name: System.BitConverterstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description BitConverter()BitConverter(java.lang.Object instance)Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BitConvertercast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoBitConverter, a cast assert is made to check if types are compatible.static longDoubleToInt64Bits(double value)static UInt64DoubleToUInt64Bits(double value)static byte[]GetBytes(boolean value)static byte[]GetBytes(char value)static byte[]GetBytes(double value)static byte[]GetBytes(int value)static byte[]GetBytes(long value)static byte[]GetBytes(short value)static byte[]GetBytes(Half value)static byte[]GetBytes(Single value)static byte[]GetBytes(UInt16 value)static byte[]GetBytes(UInt32 value)static byte[]GetBytes(UInt64 value)java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class Typestatic shortHalfToInt16Bits(Half value)static UInt16HalfToUInt16Bits(Half value)static HalfInt16BitsToHalf(short value)static SingleInt32BitsToSingle(int value)static doubleInt64BitsToDouble(long value)voidsetJCOInstance(JCObject instance)static intSingleToInt32Bits(Single value)static UInt32SingleToUInt32Bits(Single value)static booleanToBoolean(byte[] value, int startIndex)static booleanToBoolean(JCORefOut dupParam0, int dupParam1)static charToChar(byte[] value, int startIndex)static charToChar(JCORefOut dupParam0, int dupParam1)static doubleToDouble(byte[] value, int startIndex)static doubleToDouble(JCORefOut dupParam0, int dupParam1)static HalfToHalf(byte[] value, int startIndex)static HalfToHalf(JCORefOut dupParam0, int dupParam1)static shortToInt16(byte[] value, int startIndex)static shortToInt16(JCORefOut dupParam0, int dupParam1)static intToInt32(byte[] value, int startIndex)static intToInt32(JCORefOut dupParam0, int dupParam1)static longToInt64(byte[] value, int startIndex)static longToInt64(JCORefOut dupParam0, int dupParam1)static SingleToSingle(byte[] value, int startIndex)static SingleToSingle(JCORefOut dupParam0, int dupParam1)static java.lang.StringToString(byte[] value)static java.lang.StringToString(byte[] value, int startIndex)static java.lang.StringToString(byte[] value, int startIndex, int length)static java.lang.StringToString(JCORefOut dupParam0)static java.lang.StringToString(JCORefOut dupParam0, int dupParam1)static java.lang.StringToString(JCORefOut dupParam0, int dupParam1, int dupParam2)static UInt16ToUInt16(byte[] value, int startIndex)static UInt16ToUInt16(JCORefOut dupParam0, int dupParam1)static UInt32ToUInt32(byte[] value, int startIndex)static UInt32ToUInt32(JCORefOut dupParam0, int dupParam1)static UInt64ToUInt64(byte[] value, int startIndex)static UInt64ToUInt64(JCORefOut dupParam0, int dupParam1)static HalfUInt16BitsToHalf(UInt16 value)static SingleUInt32BitsToSingle(UInt32 value)static doubleUInt64BitsToDouble(UInt64 value)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Private.CoreLib- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.BitConverter- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static BitConverter cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoBitConverter, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
BitConverterinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
ToBoolean
public static boolean ToBoolean(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
ToBoolean
public static boolean ToBoolean(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
GetBytes
public static byte[] GetBytes(boolean value) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
GetBytes
public static byte[] GetBytes(char value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
GetBytes
public static byte[] GetBytes(double value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
GetBytes
public static byte[] GetBytes(short value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
GetBytes
public static byte[] GetBytes(int value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
GetBytes
public static byte[] GetBytes(long value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
GetBytes
public static byte[] GetBytes(Single value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
GetBytes
public static byte[] GetBytes(Half value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
GetBytes
public static byte[] GetBytes(UInt16 value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
GetBytes
public static byte[] GetBytes(UInt32 value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
GetBytes
public static byte[] GetBytes(UInt64 value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
ToChar
public static char ToChar(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
ToChar
public static char ToChar(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
Int64BitsToDouble
public static double Int64BitsToDouble(long value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
ToDouble
public static double ToDouble(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
ToDouble
public static double ToDouble(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
UInt64BitsToDouble
public static double UInt64BitsToDouble(UInt64 value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
HalfToInt16Bits
public static short HalfToInt16Bits(Half value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ToInt16
public static short ToInt16(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
ToInt16
public static short ToInt16(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
SingleToInt32Bits
public static int SingleToInt32Bits(Single value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
ToInt32
public static int ToInt32(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
ToInt32
public static int ToInt32(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
DoubleToInt64Bits
public static long DoubleToInt64Bits(double value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
ToInt64
public static long ToInt64(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
ToInt64
public static long ToInt64(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
Int32BitsToSingle
public static Single Int32BitsToSingle(int value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
ToSingle
public static Single ToSingle(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
ToSingle
public static Single ToSingle(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
UInt32BitsToSingle
public static Single UInt32BitsToSingle(UInt32 value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
Int16BitsToHalf
public static Half Int16BitsToHalf(short value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ToHalf
public static Half ToHalf(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
ToHalf
public static Half ToHalf(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
UInt16BitsToHalf
public static Half UInt16BitsToHalf(UInt16 value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ToString
public static java.lang.String ToString(byte[] value, int startIndex, int length) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
-
ToString
public static java.lang.String ToString(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
-
ToString
public static java.lang.String ToString(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
-
ToString
public static java.lang.String ToString(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
-
ToString
public static java.lang.String ToString(byte[] value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
-
ToString
public static java.lang.String ToString(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
-
HalfToUInt16Bits
public static UInt16 HalfToUInt16Bits(Half value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ToUInt16
public static UInt16 ToUInt16(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
ToUInt16
public static UInt16 ToUInt16(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
SingleToUInt32Bits
public static UInt32 SingleToUInt32Bits(Single value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
ToUInt32
public static UInt32 ToUInt32(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
ToUInt32
public static UInt32 ToUInt32(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
DoubleToUInt64Bits
public static UInt64 DoubleToUInt64Bits(double value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
ToUInt64
public static UInt64 ToUInt64(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
ToUInt64
public static UInt64 ToUInt64(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
-