terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
NativeEventCalls.cs
Go to the documentation of this file.
1using System;
5
6namespace System.Threading
7{
8 // Token: 0x0200020C RID: 524
9 internal static class NativeEventCalls
10 {
11 // Token: 0x060012A2 RID: 4770 RVA: 0x000273FC File Offset: 0x000255FC
12 public static IntPtr CreateEvent_internal(bool manual, bool initial, string name, [Out] int errorCode)
13 {
14 /*
15An exception occurred when decompiling this method (060012A2)
16
17ICSharpCode.Decompiler.DecompilerException: Error decompiling System.IntPtr System.Threading.NativeEventCalls::CreateEvent_internal(System.Boolean,System.Boolean,System.String,System.Int32)
18
19 ---> System.Exception: Basic block has to end with unconditional control flow.
20{
21 Block_0:
22 stloc:int32(var_1_0A, callgetter:int32(RuntimeHelpers::get_OffsetToStringData))
23}
24
25 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
26 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
27 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
28 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
29 --- End of inner exception stack trace ---
30 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
31 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
32*/;
33 }
34
35 // Token: 0x060012A3 RID: 4771 RVA: 0x0000207A File Offset: 0x0000027A
36 private unsafe static IntPtr CreateEvent_icall(bool manual, bool initial, char* name, int name_length, [Out] int errorCode)
37 {
38 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
39 }
40
41 // Token: 0x060012A4 RID: 4772 RVA: 0x00027414 File Offset: 0x00025614
42 public static bool SetEvent(SafeWaitHandle handle)
43 {
44 if (!false)
45 {
46 }
47 throw new OutOfMemoryException();
48 }
49
50 // Token: 0x060012A5 RID: 4773 RVA: 0x0000207A File Offset: 0x0000027A
51 private static bool SetEvent_internal(IntPtr handle)
52 {
53 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
54 }
55
56 // Token: 0x060012A6 RID: 4774 RVA: 0x0002743C File Offset: 0x0002563C
57 public static bool ResetEvent(SafeWaitHandle handle)
58 {
59 if (!false)
60 {
61 }
62 throw new OutOfMemoryException();
63 }
64
65 // Token: 0x060012A7 RID: 4775 RVA: 0x0000207A File Offset: 0x0000027A
66 private static bool ResetEvent_internal(IntPtr handle)
67 {
68 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
69 }
70
71 // Token: 0x060012A8 RID: 4776 RVA: 0x00027464 File Offset: 0x00025664
72 public static void CloseEvent_internal(IntPtr handle)
73 {
74 }
75 }
76}
class f__AnonymousType0<< Count > j__TPar
static IntPtr CreateEvent_internal(bool manual, bool initial, string name, [Out] int errorCode)
static void CloseEvent_internal(IntPtr handle)
static bool SetEvent(SafeWaitHandle handle)
static bool SetEvent_internal(IntPtr handle)
static bool ResetEvent_internal(IntPtr handle)
static bool ResetEvent(SafeWaitHandle handle)
static unsafe IntPtr CreateEvent_icall(bool manual, bool initial, char *name, int name_length, [Out] int errorCode)