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
Tokenizer.cs
Go to the documentation of this file.
1using System;
2using System.IO;
3using System.Text;
6
8{
9 [global::Cpp2ILInjected.Token(Token = "0x200029F")]
10 internal sealed class Tokenizer
11 {
12 [global::Cpp2ILInjected.Token(Token = "0x6001728")]
13 [global::Cpp2ILInjected.Address(RVA = "0x1AF0360", Offset = "0x1AF0360", Length = "0x78")]
14 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Parser), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
15 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Tokenizer), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
16 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
17 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.SharedStatics), Member = "GetSharedStringMaker", ReturnType = typeof(Tokenizer.StringMaker))]
18 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
19 internal void BasicInitialization()
20 {
21 throw null;
22 }
23
24 [global::Cpp2ILInjected.Token(Token = "0x6001729")]
25 [global::Cpp2ILInjected.Address(RVA = "0x1AF03D8", Offset = "0x1AF03D8", Length = "0x5C")]
26 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Parser), Member = ".ctor", MemberParameters = new object[] { typeof(Tokenizer) }, ReturnType = typeof(void))]
27 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
28 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.SharedStatics), Member = "ReleaseSharedStringMaker", MemberParameters = new object[] { typeof(ref Tokenizer.StringMaker) }, ReturnType = typeof(void))]
29 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
30 public void Recycle()
31 {
32 throw null;
33 }
34
35 [global::Cpp2ILInjected.Token(Token = "0x600172A")]
36 [global::Cpp2ILInjected.Address(RVA = "0x1AF0320", Offset = "0x1AF0320", Length = "0x40")]
37 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
38 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
39 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tokenizer), Member = "BasicInitialization", ReturnType = typeof(void))]
40 internal Tokenizer(string input)
41 {
42 throw null;
43 }
44
45 [global::Cpp2ILInjected.Token(Token = "0x600172B")]
46 [global::Cpp2ILInjected.Address(RVA = "0x1AEFAB4", Offset = "0x1AEFAB4", Length = "0x200")]
47 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
48 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Parser), Member = "DetermineFormat", MemberParameters = new object[] { typeof(TokenizerStream) }, ReturnType = typeof(int))]
49 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
50 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "CreateString", MemberParameters = new object[]
51 {
52 typeof(char),
53 typeof(int)
54 }, ReturnType = typeof(string))]
55 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Text.Encoding), Member = "get_Unicode", ReturnType = typeof(global::System.Text.Encoding))]
56 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Text.Encoding), Member = "get_UTF8", ReturnType = typeof(global::System.Text.Encoding))]
57 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Text.Encoding), Member = "get_ASCII", ReturnType = typeof(global::System.Text.Encoding))]
58 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.IO.MemoryStream), Member = ".ctor", MemberParameters = new object[]
59 {
60 typeof(byte[]),
61 typeof(int),
62 typeof(int)
63 }, ReturnType = typeof(void))]
64 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.IO.StreamReader), Member = ".ctor", MemberParameters = new object[]
65 {
66 typeof(global::System.IO.Stream),
67 typeof(global::System.Text.Encoding)
68 }, ReturnType = typeof(void))]
69 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
70 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
71 internal void ChangeFormat(global::System.Text.Encoding encoding)
72 {
73 throw null;
74 }
75
76 [global::Cpp2ILInjected.Token(Token = "0x600172C")]
77 [global::Cpp2ILInjected.Address(RVA = "0x1AEF33C", Offset = "0x1AEF33C", Length = "0x6E0")]
78 [global::Cpp2ILInjected.CallAnalysis.ContainsInvalidInstructions]
79 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
80 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Parser), Member = "DetermineFormat", MemberParameters = new object[] { typeof(TokenizerStream) }, ReturnType = typeof(int))]
81 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Parser), Member = "ParseContents", ReturnType = typeof(void))]
82 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
83 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "get_Chars", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(char))]
84 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Text.StringBuilder), Member = ".ctor", ReturnType = typeof(void))]
85 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Text.StringBuilder), Member = "Append", MemberParameters = new object[]
86 {
87 typeof(char[]),
88 typeof(int),
89 typeof(int)
90 }, ReturnType = typeof(global::System.Text.StringBuilder))]
91 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Compare", MemberParameters = new object[]
92 {
93 typeof(string),
94 typeof(int),
95 typeof(string),
96 typeof(int),
97 typeof(int),
98 typeof(global::System.StringComparison)
99 }, ReturnType = typeof(int))]
100 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TokenizerStream), Member = "AddToken", MemberParameters = new object[] { typeof(short) }, ReturnType = typeof(void))]
101 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tokenizer.StringMaker), Member = "MakeString", ReturnType = typeof(string))]
102 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TokenizerStream), Member = "AddString", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
103 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Environment), Member = "GetResourceString", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(string))]
104 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.SystemException), Member = ".ctor", ReturnType = typeof(void))]
105 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 12)]
106 internal void GetTokens(TokenizerStream stream, int maxNum, bool endAfterKet)
107 {
108 throw null;
109 }
110
111 [global::Cpp2ILInjected.Token(Token = "0x600172D")]
112 [global::Cpp2ILInjected.Address(RVA = "0x1AF050C", Offset = "0x1AF050C", Length = "0x8")]
113 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
114 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tokenizer.StringMaker), Member = "MakeString", ReturnType = typeof(string))]
115 private string GetStringToken()
116 {
117 throw null;
118 }
119
120 [global::Cpp2ILInjected.Token(Token = "0x4000BB4")]
121 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
122 public int LineNo;
123
124 [global::Cpp2ILInjected.Token(Token = "0x4000BB5")]
125 [global::Cpp2ILInjected.FieldOffset(Offset = "0x14")]
126 private int _inProcessingTag;
127
128 [global::Cpp2ILInjected.Token(Token = "0x4000BB6")]
129 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
130 private byte[] _inBytes;
131
132 [global::Cpp2ILInjected.Token(Token = "0x4000BB7")]
133 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
134 private char[] _inChars;
135
136 [global::Cpp2ILInjected.Token(Token = "0x4000BB8")]
137 [global::Cpp2ILInjected.FieldOffset(Offset = "0x28")]
138 private string _inString;
139
140 [global::Cpp2ILInjected.Token(Token = "0x4000BB9")]
141 [global::Cpp2ILInjected.FieldOffset(Offset = "0x30")]
142 private int _inIndex;
143
144 [global::Cpp2ILInjected.Token(Token = "0x4000BBA")]
145 [global::Cpp2ILInjected.FieldOffset(Offset = "0x34")]
146 private int _inSize;
147
148 [global::Cpp2ILInjected.Token(Token = "0x4000BBB")]
149 [global::Cpp2ILInjected.FieldOffset(Offset = "0x38")]
150 private int _inSavedCharacter;
151
152 [global::Cpp2ILInjected.Token(Token = "0x4000BBC")]
153 [global::Cpp2ILInjected.FieldOffset(Offset = "0x3C")]
155
156 [global::Cpp2ILInjected.Token(Token = "0x4000BBD")]
157 [global::Cpp2ILInjected.FieldOffset(Offset = "0x40")]
159
160 [global::Cpp2ILInjected.Token(Token = "0x4000BBE")]
161 [global::Cpp2ILInjected.FieldOffset(Offset = "0x48")]
163
164 [global::Cpp2ILInjected.Token(Token = "0x4000BBF")]
165 [global::Cpp2ILInjected.FieldOffset(Offset = "0x50")]
166 private string[] _searchStrings;
167
168 [global::Cpp2ILInjected.Token(Token = "0x4000BC0")]
169 [global::Cpp2ILInjected.FieldOffset(Offset = "0x58")]
170 private string[] _replaceStrings;
171
172 [global::Cpp2ILInjected.Token(Token = "0x4000BC1")]
173 [global::Cpp2ILInjected.FieldOffset(Offset = "0x60")]
174 private int _inNestedIndex;
175
176 [global::Cpp2ILInjected.Token(Token = "0x4000BC2")]
177 [global::Cpp2ILInjected.FieldOffset(Offset = "0x64")]
178 private int _inNestedSize;
179
180 [global::Cpp2ILInjected.Token(Token = "0x4000BC3")]
181 [global::Cpp2ILInjected.FieldOffset(Offset = "0x68")]
182 private string _inNestedString;
183
184 [global::Cpp2ILInjected.Token(Token = "0x20002A0")]
185 private enum TokenSource
186 {
187 [global::Cpp2ILInjected.Token(Token = "0x4000BC5")]
189 [global::Cpp2ILInjected.Token(Token = "0x4000BC6")]
191 [global::Cpp2ILInjected.Token(Token = "0x4000BC7")]
193 [global::Cpp2ILInjected.Token(Token = "0x4000BC8")]
194 CharArray,
195 [global::Cpp2ILInjected.Token(Token = "0x4000BC9")]
196 String,
197 [global::Cpp2ILInjected.Token(Token = "0x4000BCA")]
199 [global::Cpp2ILInjected.Token(Token = "0x4000BCB")]
200 Other
201 }
202
203 [global::Cpp2ILInjected.Token(Token = "0x20002A1")]
204 [global::System.Serializable]
205 internal sealed class StringMaker
206 {
207 [global::Cpp2ILInjected.Token(Token = "0x600172E")]
208 [global::Cpp2ILInjected.Address(RVA = "0x1AF05D8", Offset = "0x1AF05D8", Length = "0x64")]
209 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
210 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Tokenizer.StringMaker), Member = "MakeString", ReturnType = typeof(string))]
211 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
212 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "get_Chars", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(char))]
213 private static uint HashString(string str)
214 {
215 throw null;
216 }
217
218 [global::Cpp2ILInjected.Token(Token = "0x600172F")]
219 [global::Cpp2ILInjected.Address(RVA = "0x1AF063C", Offset = "0x1AF063C", Length = "0x34")]
220 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
221 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
222 private static uint HashCharArray(char[] a, int l)
223 {
224 throw null;
225 }
226
227 [global::Cpp2ILInjected.Token(Token = "0x6001730")]
228 [global::Cpp2ILInjected.Address(RVA = "0x1AF0670", Offset = "0x1AF0670", Length = "0x94")]
229 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.SharedStatics), Member = "GetSharedStringMaker", ReturnType = typeof(Tokenizer.StringMaker))]
230 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
231 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
232 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
233 public StringMaker()
234 {
235 throw null;
236 }
237
238 [global::Cpp2ILInjected.Token(Token = "0x6001731")]
239 [global::Cpp2ILInjected.Address(RVA = "0x1AF0704", Offset = "0x1AF0704", Length = "0x78")]
240 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
241 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Tokenizer.StringMaker), Member = "MakeString", ReturnType = typeof(string))]
242 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
243 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "get_Chars", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(char))]
244 private bool CompareStringAndChars(string str, char[] a, int l)
245 {
246 throw null;
247 }
248
249 [global::Cpp2ILInjected.Token(Token = "0x6001732")]
250 [global::Cpp2ILInjected.Address(RVA = "0x1AEA294", Offset = "0x1AEA294", Length = "0x228")]
251 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
252 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SecurityDocument), Member = "GetString", MemberParameters = new object[]
253 {
254 typeof(ref int),
255 typeof(bool)
256 }, ReturnType = typeof(string))]
257 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Tokenizer), Member = "GetTokens", MemberParameters = new object[]
258 {
260 typeof(int),
261 typeof(bool)
262 }, ReturnType = typeof(void))]
263 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Tokenizer), Member = "GetStringToken", ReturnType = typeof(string))]
264 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
265 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Text.StringBuilder), Member = "Append", MemberParameters = new object[]
266 {
267 typeof(char[]),
268 typeof(int),
269 typeof(int)
270 }, ReturnType = typeof(global::System.Text.StringBuilder))]
271 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tokenizer.StringMaker), Member = "HashString", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(uint))]
272 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tokenizer.StringMaker), Member = "CompareStringAndChars", MemberParameters = new object[]
273 {
274 typeof(string),
275 typeof(char[]),
276 typeof(int)
277 }, ReturnType = typeof(bool))]
278 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "CreateString", MemberParameters = new object[]
279 {
280 typeof(char[]),
281 typeof(int),
282 typeof(int)
283 }, ReturnType = typeof(string))]
284 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
285 public string MakeString()
286 {
287 throw null;
288 }
289
290 [global::Cpp2ILInjected.Token(Token = "0x4000BCC")]
291 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
292 private string[] aStrings;
293
294 [global::Cpp2ILInjected.Token(Token = "0x4000BCD")]
295 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
296 private uint cStringsMax;
297
298 [global::Cpp2ILInjected.Token(Token = "0x4000BCE")]
299 [global::Cpp2ILInjected.FieldOffset(Offset = "0x1C")]
300 private uint cStringsUsed;
301
302 [global::Cpp2ILInjected.Token(Token = "0x4000BCF")]
303 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
304 public global::System.Text.StringBuilder _outStringBuilder;
305
306 [global::Cpp2ILInjected.Token(Token = "0x4000BD0")]
307 [global::Cpp2ILInjected.FieldOffset(Offset = "0x28")]
308 public char[] _outChars;
309
310 [global::Cpp2ILInjected.Token(Token = "0x4000BD1")]
311 [global::Cpp2ILInjected.FieldOffset(Offset = "0x30")]
312 public int _outIndex;
313 }
314
315 [global::Cpp2ILInjected.Token(Token = "0x20002A2")]
316 internal interface ITokenReader
317 {
318 [global::Cpp2ILInjected.Token(Token = "0x6001733")]
319 int Read();
320 }
321
322 [global::Cpp2ILInjected.Token(Token = "0x20002A3")]
324 {
325 [global::Cpp2ILInjected.Token(Token = "0x6001734")]
326 [global::Cpp2ILInjected.Address(RVA = "0x1AF0434", Offset = "0x1AF0434", Length = "0x2C")]
327 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
328 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
329 internal StreamTokenReader(global::System.IO.StreamReader input)
330 {
331 throw null;
332 }
333
334 [global::Cpp2ILInjected.Token(Token = "0x6001735")]
335 [global::Cpp2ILInjected.Address(RVA = "0x1AF077C", Offset = "0x1AF077C", Length = "0x34")]
336 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
337 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
338 public virtual int Read()
339 {
340 throw null;
341 }
342
343 [global::Cpp2ILInjected.Token(Token = "0x17000259")]
345 {
346 [global::Cpp2ILInjected.Token(Token = "0x6001736")]
347 [global::Cpp2ILInjected.Address(RVA = "0x1AF07B0", Offset = "0x1AF07B0", Length = "0x8")]
348 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
349 get
350 {
351 throw null;
352 }
353 }
354
355 [global::Cpp2ILInjected.Token(Token = "0x4000BD2")]
356 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
357 internal global::System.IO.StreamReader _in;
358
359 [global::Cpp2ILInjected.Token(Token = "0x4000BD3")]
360 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
361 internal int _numCharRead;
362 }
363 }
364}
class f__AnonymousType0<< Count > j__TPar
StreamTokenReader(global::System.IO.StreamReader input)
Definition Tokenizer.cs:329
bool CompareStringAndChars(string str, char[] a, int l)
Definition Tokenizer.cs:244
global::System.Text.StringBuilder _outStringBuilder
Definition Tokenizer.cs:304
static uint HashCharArray(char[] a, int l)
Definition Tokenizer.cs:222
void ChangeFormat(global::System.Text.Encoding encoding)
Definition Tokenizer.cs:71
Tokenizer.TokenSource _inTokenSource
Definition Tokenizer.cs:154
void GetTokens(TokenizerStream stream, int maxNum, bool endAfterKet)
Definition Tokenizer.cs:106
Tokenizer.ITokenReader _inTokenReader
Definition Tokenizer.cs:158
Tokenizer.StringMaker _maker
Definition Tokenizer.cs:162