mirror of https://github.com/mono/CppSharp.git
c-sharpdotnetmonobindingsbridgecclangcpluspluscppsharpglueinteropparserparsingpinvokeswigsyntax-treevisitorsxamarinxamarin-bindings
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
430 B
16 lines
430 B
using System; |
|
using System.Collections.Concurrent; |
|
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); |
|
} |
|
}
|
|
|