protected void _invokeNativeVoid(int vtableId, Object[] args) { Pointer vptr = this.getPointer().getPointer(0); // we take the vtable id and multiply with the pointer size (4 bytes on // 32bit OS) Function func = Function.getFunction(vptr.getPointer(vtableId * Native.POINTER_SIZE)); func.invokeVoid(args); }
Object result = null; if (returnType == null || returnType==void.class || returnType==Void.class) { invokeVoid(callingConvention, args); result = null;