mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2025-01-10 17:05:30 +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)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
internal static extern void SDL_free(IntPtr memblock);
|
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
|
#endregion
|
||||||
|
|
||||||
#region SDL_rwops.h
|
#region SDL_rwops.h
|
||||||
|
|
Loading…
Reference in a new issue