mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
15 lines
356 B
C#
15 lines
356 B
C#
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);
|
|
}
|
|
}
|