Class NativeTools


  • public class NativeTools
    extends java.lang.Object
    Tool class for for dealing with the native framework.
    • Constructor Detail

      • NativeTools

        public NativeTools()
    • 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)