Inheritance: TargetFunctionType
        internal static string MakePointerName(TargetType type)
        {
            NativeFunctionType func_type = type as NativeFunctionType;

            if (func_type != null)
            {
                return(func_type.GetPointerName());
            }

            NativeFunctionPointer func_ptr = type as NativeFunctionPointer;

            if (func_ptr != null)
            {
                return(((NativeFunctionType)func_ptr.Type).GetPointerName());
            }

            return(type.Name + "*");
        }
 public NativeMethodInfo(NativeFunctionType type, string name, int index)
     : base(type, name, index, false, TargetMemberAccessibility.Public, name)
 {
     this.FunctionType = type;
 }
Exemple #3
0
            protected override TargetType CreateType()
            {
                if (type_offset != 0) {
                    return_type = GetReference (type_offset);
                    if (return_type == null)
                        return null;
                }

                function_type = new NativeFunctionType (language);
                return function_type;
            }
Exemple #4
0
 public NativeMethodInfo(NativeFunctionType type, string name, int index)
     : base(type, name, index, false, TargetMemberAccessibility.Public, name)
 {
     this.FunctionType = type;
 }