Files
better-genshin-impact/Build/MicaSetup/Natives/Shell/Dialogs/Interop/Common/IntPtrExtensions.cs

9 lines
215 B
C#

using System.Runtime.InteropServices;
namespace MicaSetup.Shell.Dialogs;
internal static class IntPtrExtensions
{
public static T MarshalAs<T>(this nint ptr) => (T)Marshal.PtrToStructure(ptr, typeof(T));
}