public class NativeHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
PTR_SIZE |
| Constructor and Description |
|---|
NativeHelper() |
| Modifier and Type | Method and Description |
|---|---|
static long |
call(long proc,
long... args) |
static long |
call(long library,
String fn,
long... args) |
static void |
free(long... ptrs) |
static ByteBuffer |
getBuffer(long ptr,
int size) |
static int |
getInt(long ptr) |
static String[] |
getMultiString(ByteBuffer bb,
boolean wideChar) |
static long |
getPointer(long ptr) |
static String |
getString(byte[] buffer,
boolean wideChar) |
static String |
getString(ByteBuffer bb,
boolean wideChar) |
static String |
getString(long ptr,
long size,
boolean wideChar) |
static void |
setInt(long ptr,
int value) |
static void |
setPointer(long ptr,
long value) |
static byte[] |
toBytes(String str,
boolean wideChar) |
static long |
toMultiString(String[] strs,
boolean wideChar) |
static long |
toNative(byte[] b,
int offset,
int len) |
static long |
toNativeString(Object o,
boolean wideChar) |
static void |
zeroMemory(ByteBuffer b) |
public static long call(long library,
String fn,
long... args)
public static long call(long proc,
long... args)
public static void free(long... ptrs)
public static ByteBuffer getBuffer(long ptr, int size)
public static int getInt(long ptr)
public static long getPointer(long ptr)
public static String getString(ByteBuffer bb, boolean wideChar)
public static String getString(long ptr, long size, boolean wideChar)
public static long toMultiString(String[] strs, boolean wideChar)
public static long toNativeString(Object o, boolean wideChar)
public static String getString(byte[] buffer, boolean wideChar)
public static byte[] toBytes(String str, boolean wideChar)
public static void zeroMemory(ByteBuffer b)
public static void setInt(long ptr,
int value)
public static void setPointer(long ptr,
long value)
public static String[] getMultiString(ByteBuffer bb, boolean wideChar)
public static long toNative(byte[] b,
int offset,
int len)
Copyright © 2018. All rights reserved.