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

◆ RemoveRelativeSegments() [2/2]

static string System.IO.PathInternal.RemoveRelativeSegments ( string path,
int rootLength )
inlinestaticpackage

Definition at line 133 of file PathInternal.cs.

134 {
135 Span<char> initialBuffer = stackalloc char[260];
136 ValueStringBuilder sb = new ValueStringBuilder(initialBuffer);
137 if (RemoveRelativeSegments(path.AsSpan(), rootLength, ref sb))
138 {
139 path = sb.ToString();
140 }
141 sb.Dispose();
142 return path;
143 }
static string RemoveRelativeSegments(string path, int rootLength)

References System.Text.ValueStringBuilder.Dispose(), System.IO.PathInternal.RemoveRelativeSegments(), and System.Text.ValueStringBuilder.ToString().

Referenced by System.IO.Path.GetFullPath(), and System.IO.PathInternal.RemoveRelativeSegments().