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
EncodingHelper.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Reflection
;
3
using
Cpp2IlInjected
;
4
5
namespace
System.Text
6
{
7
// Token: 0x02000290 RID: 656
8
internal
static
class
EncodingHelper
9
{
10
// Token: 0x1700024B RID: 587
11
// (get) Token: 0x060016B6 RID: 5814 RVA: 0x0002FDEC File Offset: 0x0002DFEC
12
internal
static
Encoding
UTF8Unmarked
13
{
14
get
15
{
16
if
(!
true
)
17
{
18
}
19
if
(!
true
)
20
{
21
if
(!
true
)
22
{
23
}
24
if
(!
true
)
25
{
26
}
27
if
(
true
)
28
{
29
}
30
long
num = 0
L
;
31
if
(
true
)
32
{
33
}
34
if
(num != 0
L
)
35
{
36
throw
new
OutOfMemoryException
();
37
}
38
}
39
if
(!
true
)
40
{
41
}
42
return
1;
43
}
44
}
45
46
// Token: 0x060016B7 RID: 5815 RVA: 0x0000207A File Offset: 0x0000027A
47
internal
static
string
InternalCodePage
(
int
code_page
)
48
{
49
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
50
}
51
52
// Token: 0x060016B8 RID: 5816 RVA: 0x0002FE30 File Offset: 0x0002E030
53
internal
static
Encoding
GetDefaultEncoding
()
54
{
55
if
(!
true
)
56
{
57
}
58
Encoding
encoding;
59
return
encoding;
60
}
61
62
// Token: 0x060016B9 RID: 5817 RVA: 0x0002FE7C File Offset: 0x0002E07C
63
internal
static
object
InvokeI18N
(
string
name
,
params
object
[] args)
64
{
65
int
num = 1;
66
if
(num == 0)
67
{
68
}
69
if
(num == 0)
70
{
71
}
72
long
num2
= 0
L
;
73
if
(num != 0)
74
{
75
}
76
if
(
num2
== 0
L
)
77
{
78
Assembly
assembly =
Assembly
.
Load
(
"I18N, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"
);
79
if
(
"I18N, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"
!=
null
)
80
{
81
}
82
if
(
"I18N, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"
==
null
)
83
{
84
}
85
}
86
throw
new
OutOfMemoryException
();
87
}
88
89
// Token: 0x060016BA RID: 5818 RVA: 0x0002FEDC File Offset: 0x0002E0DC
90
// Note: this type is marked as 'beforefieldinit'.
91
static
EncodingHelper
()
92
{
93
}
94
95
// Token: 0x04000B92 RID: 2962
96
private
static
Encoding
utf8EncodingWithoutMarkers
;
97
98
// Token: 0x04000B93 RID: 2963
99
private
static
readonly
object
lockobj
;
100
101
// Token: 0x04000B94 RID: 2964
102
private
static
Assembly
i18nAssembly
;
103
104
// Token: 0x04000B95 RID: 2965
105
private
static
bool
i18nDisabled
;
106
}
107
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Cpp2IlInjected.AnalysisFailedException
Definition
AnalysisFailedException.cs:7
System.OutOfMemoryException
Definition
OutOfMemoryException.cs:9
System.Reflection.Assembly.Load
static Assembly Load(string assemblyString)
Definition
Assembly.cs:267
System.Reflection.Assembly
Definition
Assembly.cs:19
System.Text.EncodingHelper.i18nAssembly
static Assembly i18nAssembly
Definition
EncodingHelper.cs:102
System.Text.EncodingHelper.InvokeI18N
static object InvokeI18N(string name, params object[] args)
Definition
EncodingHelper.cs:63
System.Text.EncodingHelper.lockobj
static readonly object lockobj
Definition
EncodingHelper.cs:99
System.Text.EncodingHelper.GetDefaultEncoding
static Encoding GetDefaultEncoding()
Definition
EncodingHelper.cs:53
System.Text.EncodingHelper.InternalCodePage
static string InternalCodePage(int code_page)
Definition
EncodingHelper.cs:47
System.Text.EncodingHelper.UTF8Unmarked
static Encoding UTF8Unmarked
Definition
EncodingHelper.cs:13
System.Text.EncodingHelper.i18nDisabled
static bool i18nDisabled
Definition
EncodingHelper.cs:105
System.Text.EncodingHelper.EncodingHelper
static EncodingHelper()
Definition
EncodingHelper.cs:91
System.Text.EncodingHelper.utf8EncodingWithoutMarkers
static Encoding utf8EncodingWithoutMarkers
Definition
EncodingHelper.cs:96
System.Text.EncodingHelper
Definition
EncodingHelper.cs:9
System.Text.Encoding
Definition
Encoding.cs:15
Cpp2IlInjected
Definition
AnalysisFailedException.cs:4
System.Reflection
Definition
AmbiguousMatchException.cs:5
System.Text
Definition
ASCIIEncoding.cs:7
System.ExceptionArgument.name
@ name
System.ConsoleKey.L
@ L
System
Definition
__ComObject.cs:4
source
mscorlib
System
Text
EncodingHelper.cs
Generated by
1.10.0