resultContext);
ParameterType[] parameterTypes = getParameterTypes(runtime, typeMapper, method);
// Allow individual methods to set the calling convention to stdcall
CallingConvention callingConvention = method.isAnnotationPresent(StdCall.class)
? CallingConvention.STDCALL : libraryCallingConvention;
Function function = new Function(functionAddress,
getCallContext(resultType, parameterTypes, callingConvention, InvokerUtil.requiresErrno(method)));