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
BlockingCollection.cs
Go to the documentation of this file.
1using System;
7
9{
10 // Token: 0x02000429 RID: 1065
12 [DebuggerDisplay("Count = {Count}, Type = {_collection}")]
14 {
15 // Token: 0x1700067B RID: 1659
16 // (get) Token: 0x06001CDF RID: 7391 RVA: 0x00002050 File Offset: 0x00000250
18 {
19 get
20 {
21 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
22 }
23 }
24
25 // Token: 0x1700067C RID: 1660
26 // (get) Token: 0x06001CE0 RID: 7392 RVA: 0x0004E99C File Offset: 0x0004CB9C
27 public bool IsCompleted
28 {
29 get
30 {
31 }
32 }
33
34 // Token: 0x1700067D RID: 1661
35 // (get) Token: 0x06001CE1 RID: 7393 RVA: 0x0004E9AC File Offset: 0x0004CBAC
36 public int Count
37 {
38 get
39 {
40 int num;
41 return num;
42 }
43 }
44
45 // Token: 0x1700067E RID: 1662
46 // (get) Token: 0x06001CE2 RID: 7394 RVA: 0x0004E9BC File Offset: 0x0004CBBC
48 {
49 get
50 {
51 }
52 }
53
54 // Token: 0x1700067F RID: 1663
55 // (get) Token: 0x06001CE3 RID: 7395 RVA: 0x00002050 File Offset: 0x00000250
57 {
58 get
59 {
60 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
61 }
62 }
63
64 // Token: 0x06001CE4 RID: 7396 RVA: 0x0004E9CC File Offset: 0x0004CBCC
66 {
68 }
69
70 // Token: 0x06001CE5 RID: 7397 RVA: 0x0004E9E0 File Offset: 0x0004CBE0
72 {
73 do
74 {
75 base..ctor();
76 }
77 while (collection == null);
78 }
79
80 // Token: 0x06001CE6 RID: 7398 RVA: 0x0004E9F8 File Offset: 0x0004CBF8
86
87 // Token: 0x06001CE7 RID: 7399 RVA: 0x0004EA18 File Offset: 0x0004CC18
88 public void Add(T item)
89 {
90 }
91
92 // Token: 0x06001CE8 RID: 7400 RVA: 0x0004EA28 File Offset: 0x0004CC28
93 private bool TryAddWithNoTimeValidation(T item, int millisecondsTimeout, CancellationToken cancellationToken)
94 {
95 if (this != null)
96 {
99 long num = 0L;
100 if (cancellationTokenSource != null)
101 {
102 cancellationTokenSource.Dispose();
103 }
104 if (num != 0L)
105 {
106 goto IL_0038;
107 }
108 }
109 long value = 0.m_value;
110 if (false)
111 {
112 throw new OutOfMemoryException();
113 }
114 IL_0038:
115 throw new OutOfMemoryException();
116 }
117
118 // Token: 0x06001CE9 RID: 7401 RVA: 0x0004EAB4 File Offset: 0x0004CCB4
119 public T Take()
120 {
121 /*
122An exception occurred when decompiling this method (06001CE9)
123
124ICSharpCode.Decompiler.DecompilerException: Error decompiling T System.Collections.Concurrent.BlockingCollection`1::Take()
125
126 ---> System.Exception: Basic block has to end with unconditional control flow.
127{
128 IL_0003:
129 stloc:CancellationToken(var_1_0A, callgetter:CancellationToken(CancellationToken::get_None))
130}
131
132 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
133 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
134 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
135 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
136 --- End of inner exception stack trace ---
137 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
138 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
139*/;
140 }
141
142 // Token: 0x06001CEA RID: 7402 RVA: 0x00002050 File Offset: 0x00000250
143 public T Take(CancellationToken cancellationToken)
144 {
145 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
146 }
147
148 // Token: 0x06001CEB RID: 7403 RVA: 0x00002050 File Offset: 0x00000250
149 public bool TryTake([Out] T item, int millisecondsTimeout, CancellationToken cancellationToken)
150 {
151 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
152 }
153
154 // Token: 0x06001CEC RID: 7404 RVA: 0x0004EACC File Offset: 0x0004CCCC
155 private bool TryTakeWithNoTimeValidation([Out] T item, int millisecondsTimeout, CancellationToken cancellationToken, CancellationTokenSource combinedTokenSource)
156 {
157 long num = 0L;
158 if (combinedTokenSource == null && combinedTokenSource != null)
159 {
160 combinedTokenSource.Dispose();
161 }
162 if (num == 0L)
163 {
165 if (collection == null)
166 {
167 }
170 while (collection == null)
171 {
172 }
173 bool flag;
174 return flag;
175 }
176 throw new OutOfMemoryException();
177 }
178
179 // Token: 0x06001CED RID: 7405 RVA: 0x0004EB7C File Offset: 0x0004CD7C
181 {
182 }
183
184 // Token: 0x06001CEE RID: 7406 RVA: 0x0004EB8C File Offset: 0x0004CD8C
185 public void Dispose()
186 {
187 GC.SuppressFinalize(this);
188 }
189
190 // Token: 0x06001CEF RID: 7407 RVA: 0x0004EBA0 File Offset: 0x0004CDA0
191 protected virtual void Dispose(bool disposing)
192 {
193 if (this != null)
194 {
195 }
196 }
197
198 // Token: 0x06001CF0 RID: 7408 RVA: 0x0004EBB0 File Offset: 0x0004CDB0
203
204 // Token: 0x06001CF1 RID: 7409 RVA: 0x0004EBD8 File Offset: 0x0004CDD8
206 {
207 /*
208An exception occurred when decompiling this method (06001CF1)
209
210ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<T> System.Collections.Concurrent.BlockingCollection`1::System.Collections.Generic.IEnumerable<T>.GetEnumerator()
211
212 ---> System.Exception: Basic block has to end with unconditional control flow.
213{
214 Block_0:
215 stloc:IProducerConsumerCollection`1(var_0_06, ldfld:class [mscorlib]System.Collections.Concurrent.IProducerConsumerCollection`1<!T>[exp:IProducerConsumerCollection`1](BlockingCollection`1::_collection, ldloc:BlockingCollection`1(this)))
216}
217
218 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
219 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
220 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
221 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
222 --- End of inner exception stack trace ---
223 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
224 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
225*/;
226 }
227
228 // Token: 0x06001CF2 RID: 7410 RVA: 0x00002050 File Offset: 0x00000250
230 {
231 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
232 }
233
234 // Token: 0x06001CF3 RID: 7411 RVA: 0x0004EBEC File Offset: 0x0004CDEC
235 private static void ValidateMillisecondsTimeout(int millisecondsTimeout)
236 {
237 }
238
239 // Token: 0x06001CF4 RID: 7412 RVA: 0x0004EC04 File Offset: 0x0004CE04
240 private void CheckDisposed()
241 {
242 }
243
244 // Token: 0x040013CC RID: 5068
246
247 // Token: 0x040013CD RID: 5069
248 private int _boundedCapacity;
249
250 // Token: 0x040013CE RID: 5070
252
253 // Token: 0x040013CF RID: 5071
255
256 // Token: 0x040013D0 RID: 5072
257 private bool _isDisposed;
258
259 // Token: 0x040013D1 RID: 5073
261
262 // Token: 0x040013D2 RID: 5074
264
265 // Token: 0x040013D3 RID: 5075
266 private int _currentAdders;
267 }
268}
class f__AnonymousType0<< Count > j__TPar
bool TryTakeWithNoTimeValidation([Out] T item, int millisecondsTimeout, CancellationToken cancellationToken, CancellationTokenSource combinedTokenSource)
void Initialize(IProducerConsumerCollection< T > collection, int boundedCapacity, int collectionCount)
bool TryAddWithNoTimeValidation(T item, int millisecondsTimeout, CancellationToken cancellationToken)
bool TryTake([Out] T item, int millisecondsTimeout, CancellationToken cancellationToken)
static void ValidateMillisecondsTimeout(int millisecondsTimeout)
BlockingCollection(IProducerConsumerCollection< T > collection)
T Take(CancellationToken cancellationToken)
static void SuppressFinalize(object obj)
Definition GC.cs:116
void CopyTo(Array array, int index)