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

◆ IsPathRooted() [2/2]

static bool System.IO.Path.IsPathRooted ( ReadOnlySpan< char > path)
inlinestatic

Definition at line 994 of file Path.cs.

995 {
996 int length = path.Length;
997 if (length < 1 || !PathInternal.IsDirectorySeparator(path[0]))
998 {
999 if (length >= 2 && PathInternal.IsValidDriveChar(path[0]))
1000 {
1001 return path[1] == ':';
1002 }
1003 return false;
1004 }
1005 return true;
1006 }

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