Package de.intarsys.nativec.api
Class NativeTools
- java.lang.Object
-
- de.intarsys.nativec.api.NativeTools
-
public class NativeTools extends java.lang.ObjectTool class for for dealing with the native framework.
-
-
Constructor Summary
Constructors Constructor Description NativeTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]fromNativeByteArray(long ptr, int count)static longfromNativeCLong(long ptr)static de.intarsys.tools.valueholder.IValueHolder<java.lang.Number>fromNativeCLongHolder(long ptr)static intfromNativeInt(long ptr)static int[]fromNativeIntArray(long ptr, int count)static int[]fromNativeIntArray(INativeHandle handle, int count)static de.intarsys.tools.valueholder.IValueHolder<java.lang.Integer>fromNativeIntHolder(long ptr)static java.lang.StringfromNativeString(long ptr, int count)static INativeHandletoHandle(long address)static voidtoNativeByteArray(long ptr, byte[] value)static voidtoNativeCLong(long ptr, int[] value)static voidtoNativeCLong(long ptr, long value)static voidtoNativeCLong(long ptr, long[] value)static voidtoNativeCLong(long ptr, de.intarsys.tools.valueholder.IValueHolder<java.lang.Number> value)static voidtoNativeInt(long ptr, int value)static voidtoNativeInt(long ptr, int[] value)static voidtoNativeInt(long ptr, de.intarsys.tools.valueholder.IValueHolder<java.lang.Integer> value)static voidtoNativePointer(long ptr, INativeHandle value)
-
-
-
Method Detail
-
fromNativeByteArray
public static byte[] fromNativeByteArray(long ptr, int count)
-
fromNativeCLong
public static long fromNativeCLong(long ptr)
-
fromNativeCLongHolder
public static de.intarsys.tools.valueholder.IValueHolder<java.lang.Number> fromNativeCLongHolder(long ptr)
-
fromNativeInt
public static int fromNativeInt(long ptr)
-
fromNativeIntArray
public static int[] fromNativeIntArray(INativeHandle handle, int count)
-
fromNativeIntArray
public static int[] fromNativeIntArray(long ptr, int count)
-
fromNativeIntHolder
public static de.intarsys.tools.valueholder.IValueHolder<java.lang.Integer> fromNativeIntHolder(long ptr)
-
fromNativeString
public static java.lang.String fromNativeString(long ptr, int count)
-
toHandle
public static INativeHandle toHandle(long address)
-
toNativeByteArray
public static void toNativeByteArray(long ptr, byte[] value)
-
toNativeCLong
public static void toNativeCLong(long ptr, de.intarsys.tools.valueholder.IValueHolder<java.lang.Number> value)
-
toNativeCLong
public static void toNativeCLong(long ptr, long value)
-
toNativeCLong
public static void toNativeCLong(long ptr, int[] value)
-
toNativeCLong
public static void toNativeCLong(long ptr, long[] value)
-
toNativeInt
public static void toNativeInt(long ptr, int value)
-
toNativeInt
public static void toNativeInt(long ptr, int[] value)
-
toNativeInt
public static void toNativeInt(long ptr, de.intarsys.tools.valueholder.IValueHolder<java.lang.Integer> value)
-
toNativePointer
public static void toNativePointer(long ptr, INativeHandle value)
-
-