mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2024-12-23 03:05:33 +00:00
Expose SDL_memcpy
This commit is contained in:
parent
6a28ae8594
commit
6cb034a649
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue