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=7.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
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic String
assemblyShortName
Assembly name: System.Private.CoreLibstatic String
className
Qualified class name: System.BitConverterstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description BitConverter()
BitConverter(Object instance)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BitConverter
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoBitConverter
, 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(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)
String
getJCOAssemblyName()
Returns the reflected Assembly nameString
getJCOClassName()
Returns the reflected Class nameObject
getJCOInstance()
Returns the instantiated classString
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typestatic 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 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 String
ToString(byte[] value)
static String
ToString(byte[] value, int startIndex)
static String
ToString(byte[] value, int startIndex, int length)
static String
ToString(JCORefOut dupParam0)
static String
ToString(JCORefOut dupParam0, int dupParam1)
static String
ToString(JCORefOut dupParam0, int dupParam1, int dupParam2)
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)
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: System.Private.CoreLib- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.BitConverter- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static BitConverter cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoBitConverter
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
BitConverter
instance- Throws:
Throwable
- in case of error during cast operation
-
ToBoolean
public static boolean ToBoolean(byte[] value, int startIndex) throws Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException
-
ToBoolean
public static boolean ToBoolean(JCORefOut dupParam0, int dupParam1) throws Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException
-
GetBytes
public static byte[] GetBytes(char value) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
GetBytes
public static byte[] GetBytes(double value) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
GetBytes
public static byte[] GetBytes(short value) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
GetBytes
public static byte[] GetBytes(int value) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
GetBytes
public static byte[] GetBytes(long value) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
GetBytes
public static byte[] GetBytes(Single value) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
GetBytes
public static byte[] GetBytes(Half value) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
GetBytes
public static byte[] GetBytes(UInt16 value) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
GetBytes
public static byte[] GetBytes(UInt32 value) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
GetBytes
public static byte[] GetBytes(UInt64 value) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
ToChar
public static char ToChar(byte[] value, int startIndex) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
ToChar
public static char ToChar(JCORefOut dupParam0, int dupParam1) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
Int64BitsToDouble
public static double Int64BitsToDouble(long value) throws Throwable
- Throws:
Throwable
-
ToDouble
public static double ToDouble(byte[] value, int startIndex) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
ToDouble
public static double ToDouble(JCORefOut dupParam0, int dupParam1) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
UInt64BitsToDouble
public static double UInt64BitsToDouble(UInt64 value) throws Throwable
- Throws:
Throwable
-
ToInt16
public static short ToInt16(byte[] value, int startIndex) throws Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException
-
ToInt16
public static short ToInt16(JCORefOut dupParam0, int dupParam1) throws Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException
-
SingleToInt32Bits
public static int SingleToInt32Bits(Single value) throws Throwable
- Throws:
Throwable
-
ToInt32
public static int ToInt32(byte[] value, int startIndex) throws Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException
-
ToInt32
public static int ToInt32(JCORefOut dupParam0, int dupParam1) throws Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException
-
DoubleToInt64Bits
public static long DoubleToInt64Bits(double value) throws Throwable
- Throws:
Throwable
-
ToInt64
public static long ToInt64(byte[] value, int startIndex) throws Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException
-
ToInt64
public static long ToInt64(JCORefOut dupParam0, int dupParam1) throws Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException
-
Int32BitsToSingle
public static Single Int32BitsToSingle(int value) throws Throwable
- Throws:
Throwable
-
ToSingle
public static Single ToSingle(byte[] value, int startIndex) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
ToSingle
public static Single ToSingle(JCORefOut dupParam0, int dupParam1) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
UInt32BitsToSingle
public static Single UInt32BitsToSingle(UInt32 value) throws Throwable
- Throws:
Throwable
-
ToHalf
public static Half ToHalf(byte[] value, int startIndex) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
ToHalf
public static Half ToHalf(JCORefOut dupParam0, int dupParam1) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
UInt16BitsToHalf
public static Half UInt16BitsToHalf(UInt16 value) throws Throwable
- Throws:
Throwable
-
ToString
public static String ToString(byte[] value, int startIndex, int length) throws Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException
-
ToString
public static String ToString(JCORefOut dupParam0, int dupParam1, int dupParam2) throws Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException
-
ToString
public static String ToString(byte[] value, int startIndex) throws Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException
-
ToString
public static String ToString(JCORefOut dupParam0, int dupParam1) throws Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException
-
ToString
public static String ToString(byte[] value) throws Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException
-
ToString
public static String ToString(JCORefOut dupParam0) throws Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException
-
HalfToUInt16Bits
public static UInt16 HalfToUInt16Bits(Half value) throws Throwable
- Throws:
Throwable
-
ToUInt16
public static UInt16 ToUInt16(byte[] value, int startIndex) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
ToUInt16
public static UInt16 ToUInt16(JCORefOut dupParam0, int dupParam1) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
SingleToUInt32Bits
public static UInt32 SingleToUInt32Bits(Single value) throws Throwable
- Throws:
Throwable
-
ToUInt32
public static UInt32 ToUInt32(byte[] value, int startIndex) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
ToUInt32
public static UInt32 ToUInt32(JCORefOut dupParam0, int dupParam1) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
DoubleToUInt64Bits
public static UInt64 DoubleToUInt64Bits(double value) throws Throwable
- Throws:
Throwable
-
ToUInt64
public static UInt64 ToUInt64(byte[] value, int startIndex) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
ToUInt64
public static UInt64 ToUInt64(JCORefOut dupParam0, int dupParam1) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
-