wip -- marshal UTF16 string from C# to Rust to avoid GC in C#

This commit is contained in:
2025-11-28 14:44:26 -07:00
parent 036be297ea
commit e274b33553
7 changed files with 52 additions and 14 deletions

12
csharp_mod/Formatter.cs Normal file
View File

@@ -0,0 +1,12 @@
using StationeersIC10Editor;
namespace Slang
{
public class SlangFormatter : ICodeFormatter
{
public override Line ParseLine(string line)
{
return Marshal.TokenizeLine(line);
}
}
}