|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<CallingConvention>
com.jinvoke.CallingConvention
public enum CallingConvention
Indicates the calling convention of a native function. The calling convention is a standardized method for a program to pass parameters to a function and receive a result value back from it. All native functions use a calling convention, that describes how they receive function parameters and return results.
The calling convention is typically spcified in the method signature in header files, or in the associated documentation.
For example, in the following method declaration from a header file, WINAPI (STDCALL) refers to the calling convention:
extern "C" WINAPI __declspec(dllexport) int NmcInit(char *portname, unsigned int baudrate);
If a calling convention is not specified, J/Invoke uses the STDCALL calling convention.
| Enum Constant Summary | |
|---|---|
CDECL
The cdecl calling convention. |
|
STDCALL
The standard-call calling convention. |
|
THISCALL
The thiscall calling convention (described here). |
|
| Method Summary | |
|---|---|
int |
getIntCode()
|
static CallingConvention |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static CallingConvention[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final CallingConvention STDCALL
public static final CallingConvention CDECL
public static final CallingConvention THISCALL
| Method Detail |
|---|
public static final CallingConvention[] values()
for(CallingConvention c : CallingConvention.values())
System.out.println(c);
public static CallingConvention valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namepublic int getIntCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||