terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
CSVWriter.cs
Go to the documentation of this file.
1using System;
2using System.IO;
3using System.Text;
6
7[global::Cpp2ILInjected.Token(Token = "0x2000055")]
8public class CSVWriter
9{
10 [global::Cpp2ILInjected.Token(Token = "0x60001CE")]
11 [global::Cpp2ILInjected.Address(RVA = "0x708AA4", Offset = "0x708AA4", Length = "0x68")]
12 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(VirtualControllerInputState), Member = "SaveDefaultCategories", ReturnType = typeof(void))]
13 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
14 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
15 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(File), Member = "Exists", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
16 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(File), Member = "SetAttributes", MemberParameters = new object[]
17 {
18 typeof(string),
20 }, ReturnType = typeof(void))]
21 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(File), Member = "Delete", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
22 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CSVWriter), Member = "SetupStreams", ReturnType = typeof(void))]
23 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CSVWriter), Member = "WriteLine", MemberParameters = new object[] { typeof(string[]) }, ReturnType = typeof(void))]
24 public CSVWriter(string file, string[] headers)
25 {
26 throw null;
27 }
28
29 [global::Cpp2ILInjected.Token(Token = "0x60001CF")]
30 [global::Cpp2ILInjected.Address(RVA = "0x708C8C", Offset = "0x708C8C", Length = "0x78")]
31 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
32 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
33 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(File), Member = "Exists", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
34 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(File), Member = "SetAttributes", MemberParameters = new object[]
35 {
36 typeof(string),
38 }, ReturnType = typeof(void))]
39 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(File), Member = "Delete", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
40 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CSVWriter), Member = "SetupStreams", MemberParameters = new object[] { typeof(UTF8Encoding) }, ReturnType = typeof(void))]
41 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CSVWriter), Member = "WriteLine", MemberParameters = new object[] { typeof(string[]) }, ReturnType = typeof(void))]
42 public CSVWriter(string file, string[] headers, UTF8Encoding enc)
43 {
44 throw null;
45 }
46
47 [global::Cpp2ILInjected.Token(Token = "0x60001D0")]
48 [global::Cpp2ILInjected.Address(RVA = "0x708DA4", Offset = "0x708DA4", Length = "0x34")]
49 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
50 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
51 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CSVWriter), Member = "SetupStreams", ReturnType = typeof(void))]
52 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CSVWriter), Member = "WriteLine", MemberParameters = new object[] { typeof(string[]) }, ReturnType = typeof(void))]
53 public CSVWriter(string[] headers)
54 {
55 throw null;
56 }
57
58 [global::Cpp2ILInjected.Token(Token = "0x60001D1")]
59 [global::Cpp2ILInjected.Address(RVA = "0x708B0C", Offset = "0x708B0C", Length = "0x98")]
60 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(CSVWriter), Member = ".ctor", MemberParameters = new object[]
61 {
62 typeof(string),
63 typeof(string[])
64 }, ReturnType = typeof(void))]
65 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(CSVWriter), Member = ".ctor", MemberParameters = new object[] { typeof(string[]) }, ReturnType = typeof(void))]
66 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
67 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MemoryStream), Member = ".ctor", ReturnType = typeof(void))]
68 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(StreamWriter), Member = ".ctor", MemberParameters = new object[] { typeof(Stream) }, ReturnType = typeof(void))]
69 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
70 private void SetupStreams()
71 {
72 throw null;
73 }
74
75 [global::Cpp2ILInjected.Token(Token = "0x60001D2")]
76 [global::Cpp2ILInjected.Address(RVA = "0x708D04", Offset = "0x708D04", Length = "0xA0")]
77 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(CSVWriter), Member = ".ctor", MemberParameters = new object[]
78 {
79 typeof(string),
80 typeof(string[]),
82 }, ReturnType = typeof(void))]
83 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
84 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MemoryStream), Member = ".ctor", ReturnType = typeof(void))]
85 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(StreamWriter), Member = ".ctor", MemberParameters = new object[]
86 {
89 }, ReturnType = typeof(void))]
90 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
91 private void SetupStreams(UTF8Encoding enc)
92 {
93 throw null;
94 }
95
96 [global::Cpp2ILInjected.Token(Token = "0x60001D3")]
97 [global::Cpp2ILInjected.Address(RVA = "0x708DD8", Offset = "0x708DD8", Length = "0x70")]
98 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
99 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(CSVWriter), Member = "Finalize", ReturnType = typeof(void))]
100 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(CSVWriter), Member = "Close", ReturnType = typeof(void))]
101 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
102 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(File), Member = "WriteAllBytes", MemberParameters = new object[]
103 {
104 typeof(string),
105 typeof(byte[])
106 }, ReturnType = typeof(void))]
107 private void CloseStreams()
108 {
109 throw null;
110 }
111
112 [global::Cpp2ILInjected.Token(Token = "0x60001D4")]
113 [global::Cpp2ILInjected.Address(RVA = "0x708E48", Offset = "0x708E48", Length = "0x94")]
114 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
115 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
116 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CSVWriter), Member = "CloseStreams", ReturnType = typeof(void))]
117 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = "Finalize", ReturnType = typeof(void))]
118 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
119 protected override void Finalize()
120 {
121 throw null;
122 }
123
124 [global::Cpp2ILInjected.Token(Token = "0x60001D5")]
125 [global::Cpp2ILInjected.Address(RVA = "0x708EDC", Offset = "0x708EDC", Length = "0xD8")]
126 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
127 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(CSVWriter), Member = "WriteLine", MemberParameters = new object[] { typeof(string[]) }, ReturnType = typeof(void))]
128 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
129 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "IndexOf", MemberParameters = new object[] { typeof(char) }, ReturnType = typeof(int))]
130 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Replace", MemberParameters = new object[]
131 {
132 typeof(string),
133 typeof(string)
134 }, ReturnType = typeof(string))]
135 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
136 {
137 typeof(string),
138 typeof(string),
139 typeof(string)
140 }, ReturnType = typeof(string))]
141 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
142 private string EncodeValue(string stringValue)
143 {
144 throw null;
145 }
146
147 [global::Cpp2ILInjected.Token(Token = "0x60001D6")]
148 [global::Cpp2ILInjected.Address(RVA = "0x708BA4", Offset = "0x708BA4", Length = "0xE8")]
149 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
150 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(CSVWriter), Member = ".ctor", MemberParameters = new object[]
151 {
152 typeof(string),
153 typeof(string[])
154 }, ReturnType = typeof(void))]
155 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(CSVWriter), Member = ".ctor", MemberParameters = new object[]
156 {
157 typeof(string),
158 typeof(string[]),
160 }, ReturnType = typeof(void))]
161 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(CSVWriter), Member = ".ctor", MemberParameters = new object[] { typeof(string[]) }, ReturnType = typeof(void))]
162 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(VirtualControllerInputState), Member = "SaveDefaultCategories", ReturnType = typeof(void))]
163 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
164 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CSVWriter), Member = "EncodeValue", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(string))]
165 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
166 {
167 typeof(string),
168 typeof(string)
169 }, ReturnType = typeof(string))]
170 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
171 public void WriteLine(string[] values)
172 {
173 throw null;
174 }
175
176 [global::Cpp2ILInjected.Token(Token = "0x60001D7")]
177 [global::Cpp2ILInjected.Address(RVA = "0x708FB4", Offset = "0x708FB4", Length = "0x4")]
178 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(VirtualControllerInputState), Member = "SaveDefaultCategories", ReturnType = typeof(void))]
179 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
180 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CSVWriter), Member = "CloseStreams", ReturnType = typeof(void))]
181 public void Close()
182 {
183 throw null;
184 }
185
186 [global::Cpp2ILInjected.Token(Token = "0x400013A")]
187 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
188 public byte[] SaveData;
189
190 [global::Cpp2ILInjected.Token(Token = "0x400013B")]
191 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
192 private string _outputFile;
193
194 [global::Cpp2ILInjected.Token(Token = "0x400013C")]
195 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
196 private bool _open;
197
198 [global::Cpp2ILInjected.Token(Token = "0x400013D")]
199 [global::Cpp2ILInjected.FieldOffset(Offset = "0x28")]
201
202 [global::Cpp2ILInjected.Token(Token = "0x400013E")]
203 [global::Cpp2ILInjected.FieldOffset(Offset = "0x30")]
205}
class f__AnonymousType0<< Count > j__TPar
bool _open
Definition CSVWriter.cs:196
string _outputFile
Definition CSVWriter.cs:192
override void Finalize()
Definition CSVWriter.cs:119
CSVWriter(string file, string[] headers)
Definition CSVWriter.cs:24
void SetupStreams(UTF8Encoding enc)
Definition CSVWriter.cs:91
void Close()
Definition CSVWriter.cs:181
CSVWriter(string[] headers)
Definition CSVWriter.cs:53
void SetupStreams()
Definition CSVWriter.cs:70
string EncodeValue(string stringValue)
Definition CSVWriter.cs:142
StreamWriter _writer
Definition CSVWriter.cs:200
void CloseStreams()
Definition CSVWriter.cs:107
void WriteLine(string[] values)
Definition CSVWriter.cs:171
CSVWriter(string file, string[] headers, UTF8Encoding enc)
Definition CSVWriter.cs:42
MemoryStream _memoryStream
Definition CSVWriter.cs:204
byte[] SaveData
Definition CSVWriter.cs:188