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

◆ IsDevice() [2/3]

static bool System.IO.PathInternal.IsDevice ( ReadOnlySpan< char > path)
inlinestaticpackage

Definition at line 304 of file PathInternal.cs.

305 {
306 if (!IsExtended(path))
307 {
308 if (path.Length >= 4 && IsDirectorySeparator(path[0]) && IsDirectorySeparator(path[1]) && (path[2] == '.' || path[2] == '?'))
309 {
310 return IsDirectorySeparator(path[3]);
311 }
312 return false;
313 }
314 return true;
315 }
static bool IsDirectorySeparator(char c)
static bool IsExtended(ReadOnlySpan< char > path)

References System.IO.PathInternal.IsDirectorySeparator(), System.IO.PathInternal.IsExtended(), and System.ReadOnlySpan< T >.Length.