Package de.intarsys.nativec.api
Class NativeTools
java.lang.Object
de.intarsys.nativec.api.NativeTools
Tool class for for dealing with the native framework.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
fromNativeByteArray
(long ptr, int count) static long
fromNativeCLong
(long ptr) static IValueHolder
<Number> fromNativeCLongHolder
(long ptr) static int
fromNativeInt
(long ptr) static int[]
fromNativeIntArray
(long ptr, int count) static int[]
fromNativeIntArray
(INativeHandle handle, int count) static IValueHolder
<Integer> fromNativeIntHolder
(long ptr) static String
fromNativeString
(long ptr, int count) static INativeHandle
toHandle
(long address) static void
toNativeByteArray
(long ptr, byte[] value) static void
toNativeCLong
(long ptr, int[] value) static void
toNativeCLong
(long ptr, long value) static void
toNativeCLong
(long ptr, long[] value) static void
toNativeCLong
(long ptr, IValueHolder<Number> value) static void
toNativeInt
(long ptr, int value) static void
toNativeInt
(long ptr, int[] value) static void
toNativeInt
(long ptr, IValueHolder<Integer> value) static void
toNativePointer
(long ptr, INativeHandle value)
-
Constructor Details
-
NativeTools
public NativeTools()
-
-
Method Details
-
fromNativeByteArray
public static byte[] fromNativeByteArray(long ptr, int count) -
fromNativeCLong
public static long fromNativeCLong(long ptr) -
fromNativeCLongHolder
-
fromNativeInt
public static int fromNativeInt(long ptr) -
fromNativeIntArray
-
fromNativeIntArray
public static int[] fromNativeIntArray(long ptr, int count) -
fromNativeIntHolder
-
fromNativeString
-
toHandle
-
toNativeByteArray
public static void toNativeByteArray(long ptr, byte[] value) -
toNativeCLong
public static void toNativeCLong(long ptr, int[] value) -
toNativeCLong
-
toNativeCLong
public static void toNativeCLong(long ptr, long 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
-
toNativePointer
-