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
HttpValidationHelpers.cs
Go to the documentation of this file.
1using System;
2
3namespace System.Net
4{
5 // Token: 0x02000127 RID: 295
6 internal static class HttpValidationHelpers
7 {
8 // Token: 0x060006EA RID: 1770 RVA: 0x0001942C File Offset: 0x0001762C
9 internal static string CheckBadHeaderNameChars(string name)
10 {
11 /*
12An exception occurred when decompiling this method (060006EA)
13
14ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Net.HttpValidationHelpers::CheckBadHeaderNameChars(System.String)
15
16 ---> System.Exception: Basic block has to end with unconditional control flow.
17{
18 IL_0003:
19 brtrue(IL_0000, ldc.i4:bool(1))
20}
21
22 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
23 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
24 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
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 1846
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: 0x060006EB RID: 1771 RVA: 0x00019440 File Offset: 0x00017640
36 internal static bool ContainsNonAsciiChars(string token)
37 {
38 }
39
40 // Token: 0x060006EC RID: 1772 RVA: 0x00019454 File Offset: 0x00017654
41 internal static bool IsValidToken(string token)
42 {
43 if (!true)
44 {
45 }
46 bool flag;
47 return flag;
48 }
49
50 // Token: 0x060006ED RID: 1773 RVA: 0x0001946C File Offset: 0x0001766C
51 public static string CheckBadHeaderValueChars(string value)
52 {
53 string text;
54 int num3;
55 do
56 {
57 int stringLength = text._stringLength;
58 long num = 0L;
59 long num2 = 0L;
60 char c = text[(int)num2];
61 if (num == 0L)
62 {
63 num3 = 1;
64 }
65 int stringLength2 = text._stringLength;
66 }
67 while (num3 != 0);
68 return text;
69 }
70
71 // Token: 0x060006EE RID: 1774 RVA: 0x000194A8 File Offset: 0x000176A8
72 public static bool IsInvalidMethodOrHeaderString(string stringValue)
73 {
74 }
75
76 // Token: 0x060006EF RID: 1775 RVA: 0x000194BC File Offset: 0x000176BC
77 // Note: this type is marked as 'beforefieldinit'.
79 {
80 }
81
82 // Token: 0x04000566 RID: 1382
83 private static readonly char[] s_httpTrimCharacters;
84 }
85}
class f__AnonymousType0<< Count > j__TPar
static string CheckBadHeaderNameChars(string name)
static readonly char[] s_httpTrimCharacters
static string CheckBadHeaderValueChars(string value)
static bool ContainsNonAsciiChars(string token)
static bool IsValidToken(string token)
static bool IsInvalidMethodOrHeaderString(string stringValue)