Obtain the type information for method with specified index.
a method index
a StructInfo
the FunctionInfo, free it with g_base_info_unref when done.
g_base_info_unref