This commit is contained in:
Rian Drake 2026-10-15 14:09:11 +13:00
commit b578433e37

View file

@ -0,0 +1,15 @@
using System.Runtime.InteropServices;
namespace Brutal.FmodApi;
public partial struct FileAsyncDoneFuncPtr
{
public unsafe void Invoke(AsyncReadInfo* info, Result result)
{
if (_ptr == IntPtr.Zero)
return;
var func = Marshal.GetDelegateForFunctionPointer<FileAsyncDoneFunc>(_ptr);
func(info, result);
}
}