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

◆ ConvertToManaged()

static unsafe void System.StubHelpers.UTF8BufferMarshaler.ConvertToManaged ( StringBuilder sb,
IntPtr pNative )
inlinestaticpackage

Definition at line 21 of file UTF8BufferMarshaler.cs.

22 {
23 if (!(pNative == IntPtr.Zero))
24 {
25 byte* ptr = (byte*)(void*)pNative;
26 int length = string.strlen(ptr);
27 sb.ReplaceBufferUtf8Internal(new ReadOnlySpan<byte>(ptr, length));
28 }
29 }
void ReplaceBufferUtf8Internal(ReadOnlySpan< byte > source)

References System.length, System.Text.StringBuilder.ReplaceBufferUtf8Internal(), and System.IntPtr.Zero.