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

◆ OpenHandle()

static SafeFileHandle System.IO.File.OpenHandle ( string path,
FileMode mode = FileMode::Open,
FileAccess access = FileAccess::Read,
FileShare share = FileShare::Read,
FileOptions options = FileOptions::None,
long preallocationSize = 0L )
inlinestatic

Definition at line 1009 of file File.cs.

1010 {
1011 FileStreamHelpers.ValidateArguments(path, mode, access, share, 0, options, preallocationSize);
1012 return SafeFileHandle.Open(Path.GetFullPath(path), mode, access, share, options, preallocationSize);
1013 }
static SafeFileHandle Open(string fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, long preallocationSize)
static void ValidateArguments(string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, FileOptions options, long preallocationSize)

References System.IO.Path.GetFullPath(), Microsoft.Win32.SafeHandles.SafeFileHandle.Open(), System.options, and System.IO.Strategies.FileStreamHelpers.ValidateArguments().

Referenced by System.Net.Sockets.SocketAsyncEventArgs.DoOperationSendPackets(), System.Net.Sockets.Socket.OpenFileHandle(), System.IO.File.WriteAllBytes(), and System.IO.File.WriteAllBytesAsync().