public class DynCallback
extends java.lang.Object
The dyncallback dyncall library has an interface to create callback objects, that can be passed to functions as callback arguments. In other words, a pointer to the callback object can be "called", directly. The callback handler then allows iterating dynamically over the arguments once called back.
| Modifier and Type | Field and Description |
|---|---|
static char |
DCB_SIGCHAR_CC_ELLIPSIS
Callback signatures.
|
static char |
DCB_SIGCHAR_CC_FASTCALL_GNU
Callback signatures.
|
static char |
DCB_SIGCHAR_CC_FASTCALL_MS
Callback signatures.
|
static char |
DCB_SIGCHAR_CC_PREFIX
Callback signatures.
|
static char |
DCB_SIGCHAR_CC_STDCALL
Callback signatures.
|
static char |
DCB_SIGCHAR_CC_THISCALL_MS
Callback signatures.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
dcbArgBool(long args)
Returns the next
bool argument. |
static byte |
dcbArgChar(long args)
Returns the next
char argument. |
static double |
dcbArgDouble(long args)
Returns the next
double argument. |
static float |
dcbArgFloat(long args)
Returns the next
float argument. |
static int |
dcbArgInt(long args)
Returns the next
int argument. |
static long |
dcbArgLong(long args)
Returns the next
long argument. |
static long |
dcbArgLongLong(long args)
Returns the next
long long argument. |
static long |
dcbArgPointer(long args)
Returns the next
pointer argument. |
static short |
dcbArgShort(long args)
Returns the next
short argument. |
static byte |
dcbArgUChar(long args)
Returns the next
unsigned char argument. |
static int |
dcbArgUInt(long args)
Returns the next
unsigned int argument. |
static long |
dcbArgULong(long args)
Returns the next
unsigned long argument. |
static long |
dcbArgULongLong(long args)
Returns the next
unsigned long long argument. |
static short |
dcbArgUShort(long args)
Returns the next
unsigned short argument. |
static void |
dcbFreeCallback(long pcb)
Destroys and frees the callback object.
|
static long |
dcbGetUserData(long pcb)
Returns a pointer to the
userdata passed to the callback object on creation or initialization. |
static void |
dcbInitCallback(long pcb,
java.nio.ByteBuffer signature,
long handler,
long userdata)
(Re)initializes a callback object.
|
static void |
dcbInitCallback(long pcb,
java.lang.CharSequence signature,
long handler,
long userdata)
(Re)initializes a callback object.
|
static long |
dcbNewCallback(java.nio.ByteBuffer signature,
long funcptr,
long userdata)
Creates and initializes a new
Callback object. |
static long |
dcbNewCallback(java.lang.CharSequence signature,
long funcptr,
long userdata)
Creates and initializes a new
Callback object. |
static int |
ndcbArgBool(long args)
Unsafe version of:
ArgBool |
static byte |
ndcbArgChar(long args)
Unsafe version of:
ArgChar |
static double |
ndcbArgDouble(long args)
Unsafe version of:
ArgDouble |
static float |
ndcbArgFloat(long args)
Unsafe version of:
ArgFloat |
static int |
ndcbArgInt(long args)
Unsafe version of:
ArgInt |
static long |
ndcbArgLong(long args)
Unsafe version of:
ArgLong |
static long |
ndcbArgLongLong(long args)
Unsafe version of:
ArgLongLong |
static long |
ndcbArgPointer(long args)
Unsafe version of:
ArgPointer |
static short |
ndcbArgShort(long args)
Unsafe version of:
ArgShort |
static byte |
ndcbArgUChar(long args)
Unsafe version of:
ArgUChar |
static int |
ndcbArgUInt(long args)
Unsafe version of:
ArgUInt |
static long |
ndcbArgULong(long args)
Unsafe version of:
ArgULong |
static long |
ndcbArgULongLong(long args)
Unsafe version of:
ArgULongLong |
static short |
ndcbArgUShort(long args)
Unsafe version of:
ArgUShort |
static void |
ndcbFreeCallback(long pcb)
Unsafe version of:
FreeCallback |
static long |
ndcbGetUserData(long pcb)
Unsafe version of:
GetUserData |
static void |
ndcbInitCallback(long pcb,
long signature,
long handler,
long userdata)
Unsafe version of:
InitCallback |
static long |
ndcbNewCallback(long signature,
long funcptr,
long userdata)
Unsafe version of:
NewCallback |
public static final char DCB_SIGCHAR_CC_PREFIX
public static final char DCB_SIGCHAR_CC_ELLIPSIS
public static final char DCB_SIGCHAR_CC_STDCALL
public static final char DCB_SIGCHAR_CC_FASTCALL_GNU
public static final char DCB_SIGCHAR_CC_FASTCALL_MS
public static final char DCB_SIGCHAR_CC_THISCALL_MS
public static long ndcbNewCallback(long signature,
long funcptr,
long userdata)
NewCallbackpublic static long dcbNewCallback(java.nio.ByteBuffer signature,
long funcptr,
long userdata)
Callback object.
Use FreeCallback to destroy the Callback object.
signature - the function signature of the function to mimicfuncptr - a pointer to a callback handleruserdata - a pointer to custom data that might be useful in the handlerpublic static long dcbNewCallback(java.lang.CharSequence signature,
long funcptr,
long userdata)
Callback object.
Use FreeCallback to destroy the Callback object.
signature - the function signature of the function to mimicfuncptr - a pointer to a callback handleruserdata - a pointer to custom data that might be useful in the handlerpublic static void ndcbInitCallback(long pcb,
long signature,
long handler,
long userdata)
InitCallbackpublic static void dcbInitCallback(long pcb,
java.nio.ByteBuffer signature,
long handler,
long userdata)
pcb - the callback objectsignature - the function signature of the function to mimichandler - a pointer to a callback handleruserdata - a pointer to custom data that might be useful in the handlerpublic static void dcbInitCallback(long pcb,
java.lang.CharSequence signature,
long handler,
long userdata)
pcb - the callback objectsignature - the function signature of the function to mimichandler - a pointer to a callback handleruserdata - a pointer to custom data that might be useful in the handlerpublic static void ndcbFreeCallback(long pcb)
FreeCallbackpublic static void dcbFreeCallback(long pcb)
pcb - the callback objectpublic static long ndcbGetUserData(long pcb)
GetUserDatapublic static long dcbGetUserData(long pcb)
userdata passed to the callback object on creation or initialization.pcb - the callback objectpublic static int ndcbArgBool(long args)
ArgBoolpublic static boolean dcbArgBool(long args)
bool argument.args - the function argumentspublic static byte ndcbArgChar(long args)
ArgCharpublic static byte dcbArgChar(long args)
char argument.args - the function argumentspublic static short ndcbArgShort(long args)
ArgShortpublic static short dcbArgShort(long args)
short argument.args - the function argumentspublic static int ndcbArgInt(long args)
ArgIntpublic static int dcbArgInt(long args)
int argument.args - the function argumentspublic static long ndcbArgLong(long args)
ArgLongpublic static long dcbArgLong(long args)
long argument.args - the function argumentspublic static long ndcbArgLongLong(long args)
ArgLongLongpublic static long dcbArgLongLong(long args)
long long argument.args - the function argumentspublic static byte ndcbArgUChar(long args)
ArgUCharpublic static byte dcbArgUChar(long args)
unsigned char argument.args - the function argumentspublic static short ndcbArgUShort(long args)
ArgUShortpublic static short dcbArgUShort(long args)
unsigned short argument.args - the function argumentspublic static int ndcbArgUInt(long args)
ArgUIntpublic static int dcbArgUInt(long args)
unsigned int argument.args - the function argumentspublic static long ndcbArgULong(long args)
ArgULongpublic static long dcbArgULong(long args)
unsigned long argument.args - the function argumentspublic static long ndcbArgULongLong(long args)
ArgULongLongpublic static long dcbArgULongLong(long args)
unsigned long long argument.args - the function argumentspublic static float ndcbArgFloat(long args)
ArgFloatpublic static float dcbArgFloat(long args)
float argument.args - the function argumentspublic static double ndcbArgDouble(long args)
ArgDoublepublic static double dcbArgDouble(long args)
double argument.args - the function argumentspublic static long ndcbArgPointer(long args)
ArgPointerpublic static long dcbArgPointer(long args)
pointer argument.args - the function argumentsCopyright LWJGL. All Rights Reserved. License terms.