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
Semaphore.cs
Go to the documentation of this file.
1using System;
4
5namespace System.Threading
6{
7 // Token: 0x020000A1 RID: 161
8 [ComVisible(false)]
9 public sealed class Semaphore : WaitHandle
10 {
11 // Token: 0x060002D5 RID: 725 RVA: 0x0000AD54 File Offset: 0x00008F54
12 internal static IntPtr CreateSemaphore_internal(int initialCount, int maximumCount, string name, [Out] int errorCode)
13 {
14 /*
15An exception occurred when decompiling this method (060002D5)
16
17ICSharpCode.Decompiler.DecompilerException: Error decompiling System.IntPtr System.Threading.Semaphore::CreateSemaphore_internal(System.Int32,System.Int32,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: 0x060002D6 RID: 726 RVA: 0x00002050 File Offset: 0x00000250
36 private unsafe static IntPtr CreateSemaphore_icall(int initialCount, int maximumCount, char* name, int name_length, [Out] int errorCode)
37 {
38 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
39 }
40
41 // Token: 0x060002D7 RID: 727 RVA: 0x00002050 File Offset: 0x00000250
42 internal static bool ReleaseSemaphore_internal(IntPtr handle, int releaseCount, [Out] int previousCount)
43 {
44 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
45 }
46 }
47}
class f__AnonymousType0<< Count > j__TPar
static unsafe IntPtr CreateSemaphore_icall(int initialCount, int maximumCount, char *name, int name_length, [Out] int errorCode)
Definition Semaphore.cs:36
static bool ReleaseSemaphore_internal(IntPtr handle, int releaseCount, [Out] int previousCount)
Definition Semaphore.cs:42
static IntPtr CreateSemaphore_internal(int initialCount, int maximumCount, string name, [Out] int errorCode)
Definition Semaphore.cs:12