Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
StackFrameExtensions.cs
Go to the documentation of this file.
1namespace System.Diagnostics;
2
3public static class StackFrameExtensions
4{
5 public static bool HasNativeImage(this StackFrame stackFrame)
6 {
7 return stackFrame.GetNativeImageBase() != IntPtr.Zero;
8 }
9
10 public static bool HasMethod(this StackFrame stackFrame)
11 {
12 return stackFrame.GetMethod() != null;
13 }
14
15 public static bool HasILOffset(this StackFrame stackFrame)
16 {
17 return stackFrame.GetILOffset() != -1;
18 }
19
20 public static bool HasSource(this StackFrame stackFrame)
21 {
22 return stackFrame.GetFileName() != null;
23 }
24
25 public static IntPtr GetNativeIP(this StackFrame stackFrame)
26 {
27 return IntPtr.Zero;
28 }
29
30 public static IntPtr GetNativeImageBase(this StackFrame stackFrame)
31 {
32 return IntPtr.Zero;
33 }
34}
static IntPtr GetNativeIP(this StackFrame stackFrame)
static bool HasILOffset(this StackFrame stackFrame)
static bool HasSource(this StackFrame stackFrame)
static IntPtr GetNativeImageBase(this StackFrame stackFrame)
static bool HasNativeImage(this StackFrame stackFrame)
static bool HasMethod(this StackFrame stackFrame)
virtual ? string GetFileName()
virtual ? MethodBase GetMethod()
static readonly IntPtr Zero
Definition IntPtr.cs:18