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, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..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: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: mscorlibstatic 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 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(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 doubleInt64BitsToDouble(long value)voidsetJCOInstance(JCObject instance)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 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)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: mscorlib- 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, ArgumentNullException, ArgumentOutOfRangeException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeException
-
ToBoolean
public static boolean ToBoolean(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeException
-
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- Throws:
java.lang.Throwable
-
GetBytes
public static byte[] GetBytes(double value) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
GetBytes
public static byte[] GetBytes(short value) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
GetBytes
public static byte[] GetBytes(int value) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
GetBytes
public static byte[] GetBytes(long value) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
GetBytes
public static byte[] GetBytes(Single value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetBytes
public static byte[] GetBytes(UInt16 value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetBytes
public static byte[] GetBytes(UInt32 value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetBytes
public static byte[] GetBytes(UInt64 value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ToChar
public static char ToChar(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentException
-
ToChar
public static char ToChar(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentException
-
Int64BitsToDouble
public static double Int64BitsToDouble(long value) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
ToDouble
public static double ToDouble(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentException
-
ToDouble
public static double ToDouble(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentException
-
ToInt16
public static short ToInt16(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentException
-
ToInt16
public static short ToInt16(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentException
-
ToInt32
public static int ToInt32(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentException
-
ToInt32
public static int ToInt32(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentException
-
DoubleToInt64Bits
public static long DoubleToInt64Bits(double value) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
ToInt64
public static long ToInt64(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentException
-
ToInt64
public static long ToInt64(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentException
-
ToSingle
public static Single ToSingle(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentException
-
ToSingle
public static Single ToSingle(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentException
-
ToString
public static java.lang.String ToString(byte[] value) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, FormatException
-
ToString
public static java.lang.String ToString(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, FormatException
-
ToString
public static java.lang.String ToString(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, FormatException
-
ToString
public static java.lang.String ToString(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, FormatException
-
ToString
public static java.lang.String ToString(byte[] value, int startIndex, int length) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, OutOfMemoryException, FormatException
-
ToString
public static java.lang.String ToString(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, OutOfMemoryException, FormatException
-
ToUInt16
public static UInt16 ToUInt16(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentException
-
ToUInt16
public static UInt16 ToUInt16(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentException
-
ToUInt32
public static UInt32 ToUInt32(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentException
-
ToUInt32
public static UInt32 ToUInt32(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentException
-
ToUInt64
public static UInt64 ToUInt64(byte[] value, int startIndex) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentException
-
ToUInt64
public static UInt64 ToUInt64(JCORefOut dupParam0, int dupParam1) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentException
-
-