mirror of
https://github.com/Jacobwasbeast/LegacyWeaveLoader.git
synced 2026-06-06 13:04:32 +00:00
feat(modloader): pdb mapping, dynamic invoke, mixins
This commit is contained in:
19
WeaveLoader.API/Native/NativeSymbol.cs
Normal file
19
WeaveLoader.API/Native/NativeSymbol.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Text;
|
||||
|
||||
namespace WeaveLoader.API.Native;
|
||||
|
||||
internal static class NativeSymbol
|
||||
{
|
||||
internal static nint Find(string fullName)
|
||||
=> NativeInterop.native_find_symbol(fullName);
|
||||
|
||||
internal static bool Has(string fullName)
|
||||
=> NativeInterop.native_has_symbol(fullName) != 0;
|
||||
|
||||
internal static string? GetSignatureKey(string fullName)
|
||||
{
|
||||
var sb = new StringBuilder(64);
|
||||
int len = NativeInterop.native_get_signature_key(fullName, sb, sb.Capacity);
|
||||
return len > 0 ? sb.ToString() : null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user