Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ Unlock()

static void System.IO.Strategies.FileStreamHelpers.Unlock ( SafeFileHandle handle,
long position,
long length )
inlinestaticpackage

Definition at line 274 of file FileStreamHelpers.cs.

275 {
276 int offsetLow = (int)position;
277 int offsetHigh = (int)(position >> 32);
278 int countLow = (int)length;
279 int countHigh = (int)(length >> 32);
281 {
282 throw Win32Marshal.GetExceptionForLastWin32Error(handle.Path);
283 }
284 }
static bool UnlockFile(SafeFileHandle handle, int offsetLow, int offsetHigh, int countLow, int countHigh)

References System.Runtime.Serialization.Dictionary, System.IO.Win32Marshal.GetExceptionForLastWin32Error(), System.handle, System.length, and Interop.Kernel32.UnlockFile().

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