Created
March 23, 2020 21:58
-
-
Save kant2002/e792a876105b4c228e96d1c9dede2ef7 to your computer and use it in GitHub Desktop.
CoreRT Calli helper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[System.Runtime.InteropServices.McgIntrinsicsAttribute] | |
internal class RawCalliHelper | |
{ | |
public static unsafe ulong StdCall<T, U, W, X>(IntPtr pfn, T* arg1, U* arg2, W* arg3, X* arg4) where T : unmanaged where U : unmanaged where W : unmanaged where X : unmanaged | |
{ | |
// This will be filled in by an IL transform | |
return 0; | |
} | |
public static unsafe ulong StdCall<T, U, W, X>(IntPtr pfn, T arg1, U* arg2, W* arg3, X* arg4) where T : struct where U : unmanaged where W : unmanaged where X : unmanaged | |
{ | |
// This will be filled in by an IL transform | |
return 0; | |
} | |
public static unsafe ulong StdCall<T, U, W>(IntPtr pfn, T* arg1, U* arg2, W* arg3) where T : unmanaged where U : unmanaged where W : unmanaged | |
{ | |
// This will be filled in by an IL transform | |
return 0; | |
} | |
public static unsafe ulong StdCall<T, U, W>(IntPtr pfn, T arg1, U* arg2, W* arg3) where T : unmanaged where U : unmanaged where W : unmanaged | |
{ | |
// This will be filled in by an IL transform | |
return 0; | |
} | |
public static unsafe ulong StdCall<T, U, W>(IntPtr pfn, T* arg1, U arg2, W arg3) where T : unmanaged where U : unmanaged where W : unmanaged | |
{ | |
// This will be filled in by an IL transform | |
return 0; | |
} | |
public static unsafe ulong StdCall<T, U>(IntPtr pfn, T* arg1, U* arg2) where T : unmanaged where U : unmanaged | |
{ | |
// This will be filled in by an IL transform | |
return 0; | |
} | |
public static unsafe ulong StdCall<T, U>(IntPtr pfn, T* arg1, U arg2) where T : unmanaged where U : unmanaged | |
{ | |
// This will be filled in by an IL transform | |
return 0; | |
} | |
public static unsafe ulong StdCall<T>(IntPtr pfn, T* arg1) where T : unmanaged | |
{ | |
// This will be filled in by an IL transform | |
return 0; | |
} | |
public static unsafe ulong StdCall<T>(IntPtr pfn, T arg1) where T : unmanaged | |
{ | |
// This will be filled in by an IL transform | |
return 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment