[C#] Move C# side to a TypeScript-based array/string conversion
authorMatt Corallo <git@bluematt.me>
Tue, 7 Nov 2023 23:22:44 +0000 (23:22 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 9 Nov 2023 21:08:24 +0000 (21:08 +0000)
commit7e1f2789179f10de55d007b8466c5f439c7587e6
tree278cf4d412850e57980350044f2d14fa7a529a3f
parent3cc0a74cece1ef4dd8c816add1172fbbf719da23
[C#] Move C# side to a TypeScript-based array/string conversion

Using the marshallers properly will be a ton of additional work,
and its not clear we can do it in the C -> C# direction anyway.
Instead, we can trivially just use the TypeScript conversion logic
which converts everything through pointers anyway.

We'd previously done this on the C side of things, but here we do
it on the C# side as well.
c_sharp/src/org/ldk/util/InternalUtils.cs
csharp_strings.py