Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ConvertToManaged()

static unsafe string System.StubHelpers.FixedWSTRMarshaler.ConvertToManaged ( IntPtr nativeHome,
int length )
inlinestaticpackage

Definition at line 14 of file FixedWSTRMarshaler.cs.

15 {
16 int num = SpanHelpers.IndexOf(ref *(char*)(void*)nativeHome, '\0', length);
17 if (num != -1)
18 {
19 length = num;
20 }
21 return new string((char*)(void*)nativeHome, 0, length);
22 }

References System.SpanHelpers.IndexOf(), and System.length.