mirror of https://github.com/mono/CppSharp.git
2 changed files with 18 additions and 0 deletions
@ -0,0 +1,15 @@ |
|||||||
|
using System; |
||||||
|
using System.Runtime.InteropServices; |
||||||
|
|
||||||
|
namespace CppSharp.Runtime |
||||||
|
{ |
||||||
|
public static class Helpers |
||||||
|
{ |
||||||
|
#if WINDOWS
|
||||||
|
[DllImport("msvcrt.dll", EntryPoint = "memcpy", CallingConvention = CallingConvention.Cdecl)] |
||||||
|
#else
|
||||||
|
[DllImport("libc", EntryPoint = "memcpy")] |
||||||
|
#endif
|
||||||
|
public static extern IntPtr memcpy(IntPtr dest, IntPtr src, UIntPtr count); |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue