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

◆ IsDeviceUNC() [2/2]

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

Definition at line 317 of file PathInternal.cs.

318 {
319 if (path.Length >= 8 && IsDevice(path) && IsDirectorySeparator(path[7]) && path[4] == 'U' && path[5] == 'N')
320 {
321 return path[6] == 'C';
322 }
323 return false;
324 }
static bool IsDirectorySeparator(char c)
static bool IsDevice(ReadOnlySpan< char > path)

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