de.intarsys.nativec.api
Class NativeTools
java.lang.Object
de.intarsys.nativec.api.NativeTools
public class NativeTools
- extends java.lang.Object
Tool class for for dealing with the native framework.
Method Summary |
static byte[] |
fromNativeByteArray(long ptr,
int count)
|
static long |
fromNativeCLong(long ptr)
|
static de.intarsys.tools.valueholder.IValueHolder<java.lang.Number> |
fromNativeCLongHolder(long ptr)
|
static int |
fromNativeInt(long ptr)
|
static int[] |
fromNativeIntArray(INativeHandle handle,
int count)
|
static int[] |
fromNativeIntArray(long ptr,
int count)
|
static de.intarsys.tools.valueholder.IValueHolder<java.lang.Integer> |
fromNativeIntHolder(long ptr)
|
static java.lang.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,
de.intarsys.tools.valueholder.IValueHolder<java.lang.Number> value)
|
static void |
toNativeCLong(long ptr,
long value)
|
static void |
toNativeCLong(long ptr,
long[] value)
|
static void |
toNativeInt(long ptr,
int value)
|
static void |
toNativeInt(long ptr,
int[] value)
|
static void |
toNativeInt(long ptr,
de.intarsys.tools.valueholder.IValueHolder<java.lang.Integer> value)
|
static void |
toNativePointer(long ptr,
INativeHandle value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NativeTools
public NativeTools()
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)