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

◆ Open()

static SafeFileHandle Microsoft.Win32.SafeHandles.SafeFileHandle.Open ( string fullPath,
FileMode mode,
FileAccess access,
FileShare share,
FileOptions options,
long preallocationSize )
inlinestaticpackage

Definition at line 432 of file SafeFileHandle.cs.

433 {
435 {
437 if (preallocationSize > 0)
438 {
439 Preallocate(fullPath, preallocationSize, safeFileHandle);
440 }
441 if ((options & FileOptions.Asynchronous) != 0)
442 {
443 safeFileHandle.InitThreadPoolBinding();
444 }
445 return safeFileHandle;
446 }
447 }
static unsafe void Preallocate(string fullPath, long preallocationSize, SafeFileHandle fileHandle)
static unsafe SafeFileHandle CreateFile(string fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
static System.IO.DisableMediaInsertionPrompt Create()

References System.IO.DisableMediaInsertionPrompt.Create(), Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(), System.options, and Microsoft.Win32.SafeHandles.SafeFileHandle.Preallocate().

Referenced by System.IO.Strategies.Net5CompatFileStreamStrategy.Net5CompatFileStreamStrategy(), System.IO.Strategies.OSFileStreamStrategy.OSFileStreamStrategy(), and System.IO.File.OpenHandle().