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
CookieTokenizer.cs
Go to the documentation of this file.
1using System;
3
4namespace System.Net
5{
6 // Token: 0x0200020E RID: 526
7 internal class CookieTokenizer
8 {
9 // Token: 0x06000CF8 RID: 3320 RVA: 0x000295AC File Offset: 0x000277AC
11 {
12 int stringLength = tokenStream._stringLength;
15 }
16
17 // Token: 0x170002B0 RID: 688
18 // (get) Token: 0x06000CF9 RID: 3321 RVA: 0x000295D4 File Offset: 0x000277D4
19 // (set) Token: 0x06000CFA RID: 3322 RVA: 0x000295E8 File Offset: 0x000277E8
20 internal bool EndOfCookie
21 {
22 get
23 {
24 return this.m_eofCookie;
25 }
26 set
27 {
28 }
29 }
30
31 // Token: 0x170002B1 RID: 689
32 // (get) Token: 0x06000CFB RID: 3323 RVA: 0x000295F8 File Offset: 0x000277F8
33 internal bool Eof
34 {
35 get
36 {
37 /*
38An exception occurred when decompiling this method (06000CFB)
39
40ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Net.CookieTokenizer::get_Eof()
41
42 ---> System.Exception: Basic block has to end with unconditional control flow.
43{
44 Block_0:
45 stloc:int32(var_0_06, ldfld:int32(CookieTokenizer::m_index, ldloc:CookieTokenizer(this)))
46}
47
48 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
49 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
50 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
51 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
52 --- End of inner exception stack trace ---
53 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
54 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
55*/;
56 }
57 }
58
59 // Token: 0x170002B2 RID: 690
60 // (get) Token: 0x06000CFC RID: 3324 RVA: 0x0002960C File Offset: 0x0002780C
61 // (set) Token: 0x06000CFD RID: 3325 RVA: 0x00029620 File Offset: 0x00027820
62 internal string Name
63 {
64 get
65 {
66 return this.m_name;
67 }
68 set
69 {
71 }
72 }
73
74 // Token: 0x170002B3 RID: 691
75 // (get) Token: 0x06000CFE RID: 3326 RVA: 0x00029634 File Offset: 0x00027834
76 // (set) Token: 0x06000CFF RID: 3327 RVA: 0x00029648 File Offset: 0x00027848
77 internal bool Quoted
78 {
79 get
80 {
81 return this.m_quoted;
82 }
83 set
84 {
85 }
86 }
87
88 // Token: 0x170002B4 RID: 692
89 // (get) Token: 0x06000D00 RID: 3328 RVA: 0x00029658 File Offset: 0x00027858
90 // (set) Token: 0x06000D01 RID: 3329 RVA: 0x0002966C File Offset: 0x0002786C
92 {
93 get
94 {
95 return this.m_token;
96 }
97 set
98 {
100 }
101 }
102
103 // Token: 0x170002B5 RID: 693
104 // (get) Token: 0x06000D02 RID: 3330 RVA: 0x00029680 File Offset: 0x00027880
105 // (set) Token: 0x06000D03 RID: 3331 RVA: 0x00029694 File Offset: 0x00027894
106 internal string Value
107 {
108 get
109 {
110 return this.m_value;
111 }
112 set
113 {
115 }
116 }
117
118 // Token: 0x06000D04 RID: 3332 RVA: 0x000296A8 File Offset: 0x000278A8
119 internal string Extract()
120 {
121 string text;
122 for (;;)
123 {
124 int tokenLength = this.m_tokenLength;
125 if (tokenLength != 0)
126 {
127 string tokenStream = this.m_tokenStream;
128 int start = this.m_start;
129 text = tokenStream.Substring(start, tokenLength);
130 if (!this.m_quoted)
131 {
132 break;
133 }
134 }
135 }
136 return text.Trim();
137 }
138
139 // Token: 0x06000D05 RID: 3333 RVA: 0x000296E4 File Offset: 0x000278E4
141 {
142 /*
143An exception occurred when decompiling this method (06000D05)
144
145ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Net.CookieToken System.Net.CookieTokenizer::FindNext(System.Boolean,System.Boolean)
146
147 ---> System.Exception: Basic block has to end with unconditional control flow.
148{
149 Block_0:
150 stloc:int32(var_1_08, ldfld:int32(CookieTokenizer::m_index, ldloc:CookieTokenizer(this)))
151 stfld:int32(CookieTokenizer::m_start, ldloc:CookieTokenizer(this), ldloc:int32(var_1_08))
152 stloc:bool(var_2_21, call:bool(char::IsWhiteSpace, callgetter:char(string::get_Chars, ldfld:string(CookieTokenizer::m_tokenStream, ldloc:CookieTokenizer(this)), ldloc:int32(var_1_08))))
153 stloc:int32(var_3_28, ldfld:int32(CookieTokenizer::m_index, ldloc:CookieTokenizer(this)))
154 stloc:int32(var_4_2F, ldfld:int32(CookieTokenizer::m_start, ldloc:CookieTokenizer(this)))
155 stloc:int32(var_5_37, ldfld:int32(CookieTokenizer::m_length, ldloc:CookieTokenizer(this)))
156 stfld:int32(CookieTokenizer::m_index, ldloc:CookieTokenizer(this), ldloc:int32(var_3_28))
157 stfld:int32(CookieTokenizer::m_start, ldloc:CookieTokenizer(this), ldloc:int32(var_4_2F))
158 stloc:int32(var_6_4E, ldfld:int32(CookieTokenizer::m_length, ldloc:CookieTokenizer(this)))
159 stloc:char(var_7_5C, callgetter:char(string::get_Chars, ldfld:string(CookieTokenizer::m_tokenStream, ldloc:CookieTokenizer(this)), ldloc:int32(var_3_28)))
160 stloc:int32(var_8_64, ldfld:int32(CookieTokenizer::m_index, ldloc:CookieTokenizer(this)))
161 stloc:int32(var_9_67, ldc.i4:int32(1))
162 stfld:bool(CookieTokenizer::m_quoted, ldloc:CookieTokenizer(this), ldloc:int32[exp:bool](var_9_67))
163 stfld:int32(CookieTokenizer::m_index, ldloc:CookieTokenizer(this), ldloc:int32(var_3_28))
164 stloc:char(var_10_84, callgetter:char(string::get_Chars, ldfld:string(CookieTokenizer::m_tokenStream, ldloc:CookieTokenizer(this)), ldloc:int32(var_3_28)))
165 stloc:int32(var_11_8C, ldfld:int32(CookieTokenizer::m_index, ldloc:CookieTokenizer(this)))
166 stfld:int32(CookieTokenizer::m_index, ldloc:CookieTokenizer(this), ldloc:int32(var_3_28))
167 stloc:int32(var_12_9B, ldfld:int32(CookieTokenizer::m_index, ldloc:CookieTokenizer(this)))
168 stloc:int32(var_13_A3, ldfld:int32(CookieTokenizer::m_index, ldloc:CookieTokenizer(this)))
169 stfld:int32(CookieTokenizer::m_index, ldloc:CookieTokenizer(this), ldloc:int32(var_13_A3))
170 stloc:int32(var_14_B3, ldfld:int32(CookieTokenizer::m_start, ldloc:CookieTokenizer(this)))
171 stfld:int32(CookieTokenizer::m_tokenLength, ldloc:CookieTokenizer(this), ldloc:int32(var_14_B3))
172 stloc:char(var_15_CA, callgetter:char(string::get_Chars, ldfld:string(CookieTokenizer::m_tokenStream, ldloc:CookieTokenizer(this)), ldloc:int32(var_13_A3)))
173 stloc:string(var_16_D2, ldfld:string(CookieTokenizer::m_tokenStream, ldloc:CookieTokenizer(this)))
174 stloc:int32(var_17_DA, ldfld:int32(CookieTokenizer::m_index, ldloc:CookieTokenizer(this)))
175 stloc:char(var_18_E5, callgetter:char(string::get_Chars, ldloc:string(var_16_D2), ldloc:int32(var_17_DA)))
176 stloc:string(var_19_ED, ldfld:string(CookieTokenizer::m_tokenStream, ldloc:CookieTokenizer(this)))
177 stloc:int32(var_20_F5, ldfld:int32(CookieTokenizer::m_index, ldloc:CookieTokenizer(this)))
178 stloc:char(var_21_100, callgetter:char(string::get_Chars, ldloc:string(var_19_ED), ldloc:int32(var_20_F5)))
179 stloc:string(var_22_108, ldfld:string(CookieTokenizer::m_tokenStream, ldloc:CookieTokenizer(this)))
180 stloc:int32(var_23_110, ldfld:int32(CookieTokenizer::m_index, ldloc:CookieTokenizer(this)))
181 stloc:char(var_24_11B, callgetter:char(string::get_Chars, ldloc:string(var_22_108), ldloc:int32(var_23_110)))
182 stloc:int32(var_25_123, ldfld:int32(CookieTokenizer::m_index, ldloc:CookieTokenizer(this)))
183 stfld:int32(CookieTokenizer::m_start, ldloc:CookieTokenizer(this), ldloc:int32(var_23_110))
184 stfld:int32(CookieTokenizer::m_tokenLength, ldloc:CookieTokenizer(this), ldloc:int32(var_6_4E))
185 stloc:int32(var_26_13B, ldfld:int32(CookieTokenizer::m_tokenLength, ldloc:CookieTokenizer(this)))
186 stloc:int32(var_27_143, ldfld:int32(CookieTokenizer::m_length, ldloc:CookieTokenizer(this)))
187 stfld:int32(CookieTokenizer::m_index, ldloc:CookieTokenizer(this), ldloc:int32(var_23_110))
188 stfld:int32(CookieTokenizer::m_tokenLength, ldloc:CookieTokenizer(this), ldloc:int32(var_26_13B))
189 stloc:int32(var_28_15B, ldfld:int32(CookieTokenizer::m_index, ldloc:CookieTokenizer(this)))
190 stloc:char(var_29_16A, callgetter:char(string::get_Chars, ldfld:string(CookieTokenizer::m_tokenStream, ldloc:CookieTokenizer(this)), ldloc:int32(var_28_15B)))
191 stloc:int32(var_30_172, ldfld:int32(CookieTokenizer::m_index, ldloc:CookieTokenizer(this)))
192 stloc:int32(var_31_175, ldc.i4:int32(3))
193 stfld:int32(CookieTokenizer::m_index, ldloc:CookieTokenizer(this), ldloc:int32(var_31_175))
194}
195
196 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
197 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
198 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
199 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
200 --- End of inner exception stack trace ---
201 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
202 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
203*/;
204 }
205
206 // Token: 0x06000D06 RID: 3334 RVA: 0x00029874 File Offset: 0x00027A74
208 {
209 this.Reset();
210 long num = 0L;
211 long num2 = 0L;
212 CookieToken cookieToken = this.FindNext(num != 0L, num2 != 0L);
213 this.m_eofCookie = true;
214 string text = this.Extract();
216 if (text._stringLength != 0)
217 {
218 CookieToken cookieToken2 = this.TokenFromName(num != 0L);
220 return cookieToken2;
221 }
222 return CookieToken.Attribute;
223 }
224
225 // Token: 0x06000D07 RID: 3335 RVA: 0x0002990C File Offset: 0x00027B0C
226 internal void Reset()
227 {
228 int index = this.m_index;
230 }
231
232 // Token: 0x06000D08 RID: 3336 RVA: 0x00029928 File Offset: 0x00027B28
234 {
235 if (!true)
236 {
237 }
238 string name = this.m_name;
239 int num;
240 while (num != 0)
241 {
242 }
243 string name2 = this.m_name;
244 int num2;
245 while (num2 != 0)
246 {
247 }
248 }
249
250 // Token: 0x06000D09 RID: 3337 RVA: 0x00029950 File Offset: 0x00027B50
251 // Note: this type is marked as 'beforefieldinit'.
253 {
254 }
255
256 // Token: 0x04000B24 RID: 2852
257 private bool m_eofCookie;
258
259 // Token: 0x04000B25 RID: 2853
260 private int m_index;
261
262 // Token: 0x04000B26 RID: 2854
263 private int m_length;
264
265 // Token: 0x04000B27 RID: 2855
266 private string m_name;
267
268 // Token: 0x04000B28 RID: 2856
269 private bool m_quoted;
270
271 // Token: 0x04000B29 RID: 2857
272 private int m_start;
273
274 // Token: 0x04000B2A RID: 2858
276
277 // Token: 0x04000B2B RID: 2859
278 private int m_tokenLength;
279
280 // Token: 0x04000B2C RID: 2860
281 private string m_tokenStream;
282
283 // Token: 0x04000B2D RID: 2861
284 private string m_value;
285
286 // Token: 0x04000B2E RID: 2862
288
289 // Token: 0x04000B2F RID: 2863
291
292 // Token: 0x0200020F RID: 527
293 private struct RecognizedAttribute
294 {
295 // Token: 0x06000D0A RID: 3338 RVA: 0x00029960 File Offset: 0x00027B60
296 internal RecognizedAttribute(string name, CookieToken token)
297 {
299 this.m_token = token;
300 }
301
302 // Token: 0x170002B6 RID: 694
303 // (get) Token: 0x06000D0B RID: 3339 RVA: 0x0002997C File Offset: 0x00027B7C
305 {
306 get
307 {
308 return this.m_token;
309 }
310 }
311
312 // Token: 0x06000D0C RID: 3340 RVA: 0x00002050 File Offset: 0x00000250
313 internal bool IsEqualTo(string value)
314 {
315 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
316 }
317
318 // Token: 0x04000B30 RID: 2864
319 private string m_name;
320
321 // Token: 0x04000B31 RID: 2865
323 }
324 }
325}
class f__AnonymousType0<< Count > j__TPar
static CookieTokenizer.RecognizedAttribute[] RecognizedAttributes
CookieToken TokenFromName(bool parseResponseCookies)
CookieToken FindNext(bool ignoreComma, bool ignoreEquals)
CookieToken Next(bool first, bool parseResponseCookies)
static CookieTokenizer.RecognizedAttribute[] RecognizedServerAttributes
CookieTokenizer(string tokenStream)
RecognizedAttribute(string name, CookieToken token)