Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SafeMemoryMappedViewHandle.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Runtime.InteropServices
;
3
4
namespace
Microsoft.Win32.SafeHandles
;
5
6
public
sealed
class
SafeMemoryMappedViewHandle
:
SafeBuffer
7
{
8
public
SafeMemoryMappedViewHandle
()
9
: base(ownsHandle: true)
10
{
11
}
12
13
protected
override
bool
ReleaseHandle
()
14
{
15
IntPtr
lpBaseAddress =
handle
;
16
handle
=
IntPtr
.
Zero
;
17
return
global::Interop.Kernel32.UnmapViewOfFile(lpBaseAddress);
18
}
19
}
Microsoft.Win32.SafeHandles.SafeMemoryMappedViewHandle.ReleaseHandle
override bool ReleaseHandle()
Definition
SafeMemoryMappedViewHandle.cs:13
Microsoft.Win32.SafeHandles.SafeMemoryMappedViewHandle.SafeMemoryMappedViewHandle
SafeMemoryMappedViewHandle()
Definition
SafeMemoryMappedViewHandle.cs:8
Microsoft.Win32.SafeHandles.SafeMemoryMappedViewHandle
Definition
SafeMemoryMappedViewHandle.cs:7
System.Runtime.InteropServices.SafeBuffer
Definition
SafeBuffer.cs:8
System.Runtime.InteropServices.SafeHandle.handle
IntPtr handle
Definition
SafeHandle.cs:8
Microsoft.Win32.SafeHandles
Definition
SafeProcessHandle.cs:3
System.Runtime.InteropServices
Definition
SequenceMarshal.cs:4
System
Definition
BlockingCollection.cs:8
System.IntPtr.Zero
static readonly IntPtr Zero
Definition
IntPtr.cs:18
System.IntPtr
Definition
IntPtr.cs:14
source
System.IO.MemoryMappedFiles
Microsoft.Win32.SafeHandles
SafeMemoryMappedViewHandle.cs
Generated by
1.10.0