Class NativeTools

java.lang.Object
de.intarsys.nativec.api.NativeTools

public class NativeTools extends Object
Tool class for for dealing with the native framework.
  • Constructor Details

    • NativeTools

      public NativeTools()
  • Method Details

    • fromNativeByteArray

      public static byte[] fromNativeByteArray(long ptr, int count)
    • fromNativeCLong

      public static long fromNativeCLong(long ptr)
    • fromNativeCLongHolder

      public static de.intarsys.tools.valueholder.IValueHolder<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<Integer> fromNativeIntHolder(long ptr)
    • fromNativeString

      public static 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<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<Integer> value)
    • toNativePointer

      public static void toNativePointer(long ptr, INativeHandle value)