diff --git a/src/SFML.Audio/Music.cs b/src/SFML.Audio/Music.cs index 3636f7c2..cdf9984b 100644 --- a/src/SFML.Audio/Music.cs +++ b/src/SFML.Audio/Music.cs @@ -390,7 +390,7 @@ public TimeSpan(Time offset, Time length) private unsafe static extern IntPtr sfMusic_createFromStream(IntPtr stream); [DllImport(CSFML.audio, CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] - private static extern IntPtr sfMusic_createFromMemory(IntPtr data, ulong size); + private static extern IntPtr sfMusic_createFromMemory(IntPtr data, uint size); [DllImport(CSFML.audio, CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] private static extern void sfMusic_destroy(IntPtr MusicStream); diff --git a/src/SFML.Audio/SoundBuffer.cs b/src/SFML.Audio/SoundBuffer.cs index 4e743172..3577f8e6 100644 --- a/src/SFML.Audio/SoundBuffer.cs +++ b/src/SFML.Audio/SoundBuffer.cs @@ -224,7 +224,7 @@ protected override void Destroy(bool disposing) private unsafe static extern IntPtr sfSoundBuffer_createFromStream(IntPtr stream); [DllImport(CSFML.audio, CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] - private unsafe static extern IntPtr sfSoundBuffer_createFromMemory(IntPtr data, ulong size); + private unsafe static extern IntPtr sfSoundBuffer_createFromMemory(IntPtr data, uint size); [DllImport(CSFML.audio, CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] private unsafe static extern IntPtr sfSoundBuffer_createFromSamples(short* Samples, ulong SampleCount, uint ChannelsCount, uint SampleRate); diff --git a/src/SFML.Graphics/Font.cs b/src/SFML.Graphics/Font.cs index 36112348..cdddd04b 100644 --- a/src/SFML.Graphics/Font.cs +++ b/src/SFML.Graphics/Font.cs @@ -230,7 +230,7 @@ internal struct InfoMarshalData private static extern IntPtr sfFont_createFromStream(IntPtr stream); [DllImport(CSFML.graphics, CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] - private static extern IntPtr sfFont_createFromMemory(IntPtr data, ulong size); + private static extern IntPtr sfFont_createFromMemory(IntPtr data, uint size); [DllImport(CSFML.graphics, CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] private static extern IntPtr sfFont_copy(IntPtr Font); diff --git a/src/SFML.Graphics/Image.cs b/src/SFML.Graphics/Image.cs index 155bf6a9..485e9eb3 100644 --- a/src/SFML.Graphics/Image.cs +++ b/src/SFML.Graphics/Image.cs @@ -365,7 +365,7 @@ protected override void Destroy(bool disposing) private unsafe static extern IntPtr sfImage_createFromStream(IntPtr stream); [DllImport(CSFML.graphics, CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] - private unsafe static extern IntPtr sfImage_createFromMemory(IntPtr data, ulong size); + private unsafe static extern IntPtr sfImage_createFromMemory(IntPtr data, uint size); [DllImport(CSFML.graphics, CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] private static extern IntPtr sfImage_copy(IntPtr Image); diff --git a/src/SFML.Graphics/Texture.cs b/src/SFML.Graphics/Texture.cs index b8e904e2..d3a1bab5 100644 --- a/src/SFML.Graphics/Texture.cs +++ b/src/SFML.Graphics/Texture.cs @@ -493,7 +493,7 @@ protected override void Destroy(bool disposing) private static extern IntPtr sfTexture_createFromImage(IntPtr image, ref IntRect area); [DllImport(CSFML.graphics, CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] - private static extern IntPtr sfTexture_createFromMemory(IntPtr data, ulong size, ref IntRect area); + private static extern IntPtr sfTexture_createFromMemory(IntPtr data, uint size, ref IntRect area); [DllImport(CSFML.graphics, CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] private static extern IntPtr sfTexture_copy(IntPtr texture);