Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SafePointerHandle.cs
Go to the documentation of this file.
1using System;
4
6
7internal abstract class SafePointerHandle<T> : SafeHandle where T : SafeHandle, new()
8{
9 public sealed override bool IsInvalid => handle == IntPtr.Zero;
10
12
14 : base(IntPtr.Zero, ownsHandle: true)
15 {
16 }
17
18 protected override void Dispose(bool disposing)
19 {
21 {
22 base.Dispose(disposing);
23 }
24 }
25}
static T GetInvalidHandle(Func< T > invalidHandleFactory)
static bool IsCachedInvalidHandle(SafeHandle handle)
static readonly IntPtr Zero
Definition IntPtr.cs:18