Expose SDL_memcpy

This commit is contained in:
Ethan Lee 2020-01-19 10:57:16 -05:00
parent 6a28ae8594
commit 6cb034a649

View file

@ -131,6 +131,14 @@ namespace SDL2
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
internal static extern void SDL_free(IntPtr memblock);
/* Buffer.BlockCopy is not available in every runtime yet. Also,
* using memcpy directly can be a compatibility issue in other
* strange ways. So, we expose this to get around all that.
* -flibit
*/
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr SDL_memcpy(IntPtr dst, IntPtr src, IntPtr len);
#endregion
#region SDL_rwops.h