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

◆ PrependDevicePathChars()

static int System.IO.PathHelper.PrependDevicePathChars ( ref ValueStringBuilder content,
bool isDosUnc,
ref ValueStringBuilder buffer )
inlinestaticpackage

Definition at line 47 of file PathHelper.cs.

48 {
49 int length = content.Length;
50 length += (isDosUnc ? 6 : 4);
51 buffer.EnsureCapacity(length + 1);
52 buffer.Length = 0;
53 if (isDosUnc)
54 {
55 buffer.Append("\\\\?\\UNC\\");
56 buffer.Append(content.AsSpan(2));
57 return 6;
58 }
59 buffer.Append("\\\\?\\");
60 buffer.Append(content.AsSpan());
61 return 4;
62 }

References System.buffer, and System.length.

Referenced by System.IO.PathHelper.TryExpandShortFileName().