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
HttpDateParse.cs
Go to the documentation of this file.
1using System;
4
5namespace System.Net
6{
7 // Token: 0x020001E9 RID: 489
8 internal static class HttpDateParse
9 {
10 // Token: 0x06000C05 RID: 3077 RVA: 0x00026FA8 File Offset: 0x000251A8
11 private static char MAKE_UPPER(char c)
12 {
13 if (!true)
14 {
15 }
17 char c2;
18 return c2;
19 }
20
21 // Token: 0x06000C06 RID: 3078 RVA: 0x00026FC4 File Offset: 0x000251C4
22 private static int MapDayMonthToDword(char[] lpszDay, int index)
23 {
24 char c2;
25 char c = HttpDateParse.MAKE_UPPER(c2);
26 return 12;
27 }
28
29 // Token: 0x06000C07 RID: 3079 RVA: 0x00027048 File Offset: 0x00025248
30 public static bool ParseHttpDate(string DateString, [Out] DateTime dtOut)
31 {
32 /*
33An exception occurred when decompiling this method (06000C07)
34
35ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Net.HttpDateParse::ParseHttpDate(System.String,System.DateTime)
36
37 ---> System.Exception: Basic block has to end with unconditional control flow.
38{
39 Block_0:
40 stloc:int64(var_4_07, ldc.i4:int64(0))
41 stloc:int32(var_5_11, call:int32(HttpDateParse::MapDayMonthToDword, ldloc:char[](var_2), ldloc:int64[exp:int32](var_4_07)))
42 stloc:DateTime(var_9_27, call:DateTime(DateTime::ToLocalTime, call:DateTime[exp:valuetype [mscorlib]System.DateTime&](DateTime::AddHours, ldloc:DateTime[exp:valuetype [mscorlib]System.DateTime&](var_8), ldloc:int64[exp:float64](var_4_07))))
43}
44
45 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
46 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
47 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
48 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
49 --- End of inner exception stack trace ---
50 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
51 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
52*/;
53 }
54
55 // Token: 0x04000A4D RID: 2637
56 private const int BASE_DEC = 10;
57
58 // Token: 0x04000A4E RID: 2638
59 private const int DATE_INDEX_DAY_OF_WEEK = 0;
60
61 // Token: 0x04000A4F RID: 2639
62 private const int DATE_1123_INDEX_DAY = 1;
63
64 // Token: 0x04000A50 RID: 2640
65 private const int DATE_1123_INDEX_MONTH = 2;
66
67 // Token: 0x04000A51 RID: 2641
68 private const int DATE_1123_INDEX_YEAR = 3;
69
70 // Token: 0x04000A52 RID: 2642
71 private const int DATE_1123_INDEX_HRS = 4;
72
73 // Token: 0x04000A53 RID: 2643
74 private const int DATE_1123_INDEX_MINS = 5;
75
76 // Token: 0x04000A54 RID: 2644
77 private const int DATE_1123_INDEX_SECS = 6;
78
79 // Token: 0x04000A55 RID: 2645
80 private const int DATE_ANSI_INDEX_MONTH = 1;
81
82 // Token: 0x04000A56 RID: 2646
83 private const int DATE_ANSI_INDEX_DAY = 2;
84
85 // Token: 0x04000A57 RID: 2647
86 private const int DATE_ANSI_INDEX_HRS = 3;
87
88 // Token: 0x04000A58 RID: 2648
89 private const int DATE_ANSI_INDEX_MINS = 4;
90
91 // Token: 0x04000A59 RID: 2649
92 private const int DATE_ANSI_INDEX_SECS = 5;
93
94 // Token: 0x04000A5A RID: 2650
95 private const int DATE_ANSI_INDEX_YEAR = 6;
96
97 // Token: 0x04000A5B RID: 2651
98 private const int DATE_INDEX_TZ = 7;
99
100 // Token: 0x04000A5C RID: 2652
101 private const int DATE_INDEX_LAST = 7;
102
103 // Token: 0x04000A5D RID: 2653
104 private const int MAX_FIELD_DATE_ENTRIES = 8;
105
106 // Token: 0x04000A5E RID: 2654
107 private const int DATE_TOKEN_JANUARY = 1;
108
109 // Token: 0x04000A5F RID: 2655
110 private const int DATE_TOKEN_FEBRUARY = 2;
111
112 // Token: 0x04000A60 RID: 2656
113 private const int DATE_TOKEN_Microsoft = 3;
114
115 // Token: 0x04000A61 RID: 2657
116 private const int DATE_TOKEN_APRIL = 4;
117
118 // Token: 0x04000A62 RID: 2658
119 private const int DATE_TOKEN_MAY = 5;
120
121 // Token: 0x04000A63 RID: 2659
122 private const int DATE_TOKEN_JUNE = 6;
123
124 // Token: 0x04000A64 RID: 2660
125 private const int DATE_TOKEN_JULY = 7;
126
127 // Token: 0x04000A65 RID: 2661
128 private const int DATE_TOKEN_AUGUST = 8;
129
130 // Token: 0x04000A66 RID: 2662
131 private const int DATE_TOKEN_SEPTEMBER = 9;
132
133 // Token: 0x04000A67 RID: 2663
134 private const int DATE_TOKEN_OCTOBER = 10;
135
136 // Token: 0x04000A68 RID: 2664
137 private const int DATE_TOKEN_NOVEMBER = 11;
138
139 // Token: 0x04000A69 RID: 2665
140 private const int DATE_TOKEN_DECEMBER = 12;
141
142 // Token: 0x04000A6A RID: 2666
143 private const int DATE_TOKEN_LAST_MONTH = 13;
144
145 // Token: 0x04000A6B RID: 2667
146 private const int DATE_TOKEN_SUNDAY = 0;
147
148 // Token: 0x04000A6C RID: 2668
149 private const int DATE_TOKEN_MONDAY = 1;
150
151 // Token: 0x04000A6D RID: 2669
152 private const int DATE_TOKEN_TUESDAY = 2;
153
154 // Token: 0x04000A6E RID: 2670
155 private const int DATE_TOKEN_WEDNESDAY = 3;
156
157 // Token: 0x04000A6F RID: 2671
158 private const int DATE_TOKEN_THURSDAY = 4;
159
160 // Token: 0x04000A70 RID: 2672
161 private const int DATE_TOKEN_FRIDAY = 5;
162
163 // Token: 0x04000A71 RID: 2673
164 private const int DATE_TOKEN_SATURDAY = 6;
165
166 // Token: 0x04000A72 RID: 2674
167 private const int DATE_TOKEN_LAST_DAY = 7;
168
169 // Token: 0x04000A73 RID: 2675
170 private const int DATE_TOKEN_GMT = -1000;
171
172 // Token: 0x04000A74 RID: 2676
173 private const int DATE_TOKEN_LAST = -1000;
174
175 // Token: 0x04000A75 RID: 2677
176 private const int DATE_TOKEN_ERROR = -999;
177 }
178}
class f__AnonymousType0<< Count > j__TPar
static CultureInfo InvariantCulture
static char MAKE_UPPER(char c)
static int MapDayMonthToDword(char[] lpszDay, int index)
static bool ParseHttpDate(string DateString, [Out] DateTime dtOut)