wip -- marshal UTF16 string from C# to Rust to avoid GC in C#
This commit is contained in:
12
csharp_mod/Formatter.cs
Normal file
12
csharp_mod/Formatter.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using StationeersIC10Editor;
|
||||
|
||||
namespace Slang
|
||||
{
|
||||
public class SlangFormatter : ICodeFormatter
|
||||
{
|
||||
public override Line ParseLine(string line)
|
||||
{
|
||||
return Marshal.TokenizeLine(line);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user