Improve support for fixed-arrays in api fields

This commit is contained in:
Wojtek Figat
2024-02-07 18:43:48 +01:00
parent c67d352065
commit 8441726da7
3 changed files with 88 additions and 82 deletions

View File

@@ -20,9 +20,7 @@ namespace FlaxEngine
get
{
fixed (short* name = Name0)
{
return new string((char*)name);
}
}
}
@@ -31,9 +29,7 @@ namespace FlaxEngine
fixed (short* name = Name0)
{
fixed (char* p = prefix)
{
return Utils.MemoryCompare(new IntPtr(name), new IntPtr(p), (ulong)(prefix.Length * 2)) == 0;
}
}
}
}