Skip to content

Instantly share code, notes, and snippets.

@kant2002
Created March 23, 2020 21:58
Show Gist options
  • Save kant2002/e792a876105b4c228e96d1c9dede2ef7 to your computer and use it in GitHub Desktop.
Save kant2002/e792a876105b4c228e96d1c9dede2ef7 to your computer and use it in GitHub Desktop.
CoreRT Calli helper
[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