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
WindowsConsoleDriver.cs
Go to the documentation of this file.
1using System;
3using System.Text;
6
7namespace System
8{
9 [global::Cpp2ILInjected.Token(Token = "0x20001AB")]
10 internal class WindowsConsoleDriver : global::System.IConsoleDriver
11 {
12 [global::Cpp2ILInjected.Token(Token = "0x600100B")]
13 [global::Cpp2ILInjected.Address(RVA = "0x1C8C274", Offset = "0x1C8C274", Length = "0x54")]
14 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
15 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.ConsoleDriver), Member = "CreateWindowsConsoleDriver", ReturnType = typeof(global::System.IConsoleDriver))]
16 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
17 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
18 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.WindowsConsoleDriver), Member = "GetStdHandle", MemberParameters = new object[] { typeof(global::System.Handles) }, ReturnType = typeof(global::System.IntPtr))]
19 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.WindowsConsoleDriver), Member = "GetConsoleScreenBufferInfo", MemberParameters = new object[]
20 {
21 typeof(global::System.IntPtr),
22 typeof(ref global::System.ConsoleScreenBufferInfo)
23 }, ReturnType = typeof(bool))]
25 {
26 throw null;
27 }
28
29 [global::Cpp2ILInjected.Token(Token = "0x600100C")]
30 [global::Cpp2ILInjected.Address(RVA = "0x1C8C3E0", Offset = "0x1C8C3E0", Length = "0x8C")]
31 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
32 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
33 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.WindowsConsoleDriver), Member = "GetConsoleScreenBufferInfo", MemberParameters = new object[]
34 {
35 typeof(global::System.IntPtr),
36 typeof(ref global::System.ConsoleScreenBufferInfo)
37 }, ReturnType = typeof(bool))]
38 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.WindowsConsoleDriver), Member = "FillConsoleOutputCharacter", MemberParameters = new object[]
39 {
40 typeof(global::System.IntPtr),
41 typeof(char),
42 typeof(int),
43 typeof(global::System.Coord),
44 typeof(ref int)
45 }, ReturnType = typeof(bool))]
46 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.WindowsConsoleDriver), Member = "FillConsoleOutputAttribute", MemberParameters = new object[]
47 {
48 typeof(global::System.IntPtr),
49 typeof(short),
50 typeof(int),
51 typeof(global::System.Coord),
52 typeof(ref int)
53 }, ReturnType = typeof(bool))]
54 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.WindowsConsoleDriver), Member = "SetConsoleCursorPosition", MemberParameters = new object[]
55 {
56 typeof(global::System.IntPtr),
57 typeof(global::System.Coord)
58 }, ReturnType = typeof(bool))]
59 public void Clear()
60 {
61 throw null;
62 }
63
64 [global::Cpp2ILInjected.Token(Token = "0x600100D")]
65 [global::Cpp2ILInjected.Address(RVA = "0x1C8C674", Offset = "0x1C8C674", Length = "0x8C")]
66 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
67 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
68 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Text.StringBuilder), Member = ".ctor", ReturnType = typeof(void))]
69 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.WindowsConsoleDriver), Member = "ReadKey", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(global::System.ConsoleKeyInfo))]
70 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Text.StringBuilder), Member = "Append", MemberParameters = new object[] { typeof(char) }, ReturnType = typeof(global::System.Text.StringBuilder))]
71 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
72 public string ReadLine()
73 {
74 throw null;
75 }
76
77 [global::Cpp2ILInjected.Token(Token = "0x600100E")]
78 [global::Cpp2ILInjected.Address(RVA = "0x1C8C700", Offset = "0x1C8C700", Length = "0x138")]
79 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
80 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.WindowsConsoleDriver), Member = "ReadLine", ReturnType = typeof(string))]
81 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
82 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.WindowsConsoleDriver), Member = "ReadConsoleInput", MemberParameters = new object[]
83 {
84 typeof(global::System.IntPtr),
85 typeof(ref global::System.InputRecord),
86 typeof(int),
87 typeof(ref int)
88 }, ReturnType = typeof(bool))]
89 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.ConsoleKeyInfo), Member = ".ctor", MemberParameters = new object[]
90 {
91 typeof(char),
92 typeof(global::System.ConsoleKey),
93 typeof(bool),
94 typeof(bool),
95 typeof(bool)
96 }, ReturnType = typeof(void))]
97 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Runtime.InteropServices.Marshal), Member = "GetLastWin32Error", ReturnType = typeof(int))]
98 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(int), Member = "ToString", ReturnType = typeof(string))]
99 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
100 {
101 typeof(string),
102 typeof(string)
103 }, ReturnType = typeof(string))]
104 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.InvalidOperationException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
105 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
106 public global::System.ConsoleKeyInfo ReadKey(bool intercept)
107 {
108 throw null;
109 }
110
111 [global::Cpp2ILInjected.Token(Token = "0x600100F")]
112 [global::Cpp2ILInjected.Address(RVA = "0x1C8C940", Offset = "0x1C8C940", Length = "0x34")]
113 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
114 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
115 private static bool IsModifierKey(short virtualKeyCode)
116 {
117 throw null;
118 }
119
120 [global::Cpp2ILInjected.Token(Token = "0x6001010")]
121 [global::Cpp2ILInjected.Address(RVA = "0x1C8C2C8", Offset = "0x1C8C2C8", Length = "0x84")]
122 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
123 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.WindowsConsoleDriver), Member = ".ctor", ReturnType = typeof(void))]
124 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
125 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
126 [global::System.Runtime.InteropServices.PreserveSig]
127 private static extern global::System.IntPtr GetStdHandle(global::System.Handles handle);
128
129 [global::Cpp2ILInjected.Token(Token = "0x6001011")]
130 [global::Cpp2ILInjected.Address(RVA = "0x1C8C34C", Offset = "0x1C8C34C", Length = "0x94")]
131 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
132 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.WindowsConsoleDriver), Member = ".ctor", ReturnType = typeof(void))]
133 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.WindowsConsoleDriver), Member = "Clear", ReturnType = typeof(void))]
134 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
135 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
136 [global::System.Runtime.InteropServices.PreserveSig]
137 private static extern bool GetConsoleScreenBufferInfo(global::System.IntPtr handle, out global::System.ConsoleScreenBufferInfo info);
138
139 [global::Cpp2ILInjected.Token(Token = "0x6001012")]
140 [global::Cpp2ILInjected.Address(RVA = "0x1C8C46C", Offset = "0x1C8C46C", Length = "0xBC")]
141 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
142 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.WindowsConsoleDriver), Member = "Clear", ReturnType = typeof(void))]
143 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
144 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
145 [global::System.Runtime.InteropServices.PreserveSig]
146 private static extern bool FillConsoleOutputCharacter(global::System.IntPtr handle, char c, int size, global::System.Coord coord, out int written);
147
148 [global::Cpp2ILInjected.Token(Token = "0x6001013")]
149 [global::Cpp2ILInjected.Address(RVA = "0x1C8C528", Offset = "0x1C8C528", Length = "0xBC")]
150 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
151 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.WindowsConsoleDriver), Member = "Clear", ReturnType = typeof(void))]
152 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
153 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
154 [global::System.Runtime.InteropServices.PreserveSig]
155 private static extern bool FillConsoleOutputAttribute(global::System.IntPtr handle, short c, int size, global::System.Coord coord, out int written);
156
157 [global::Cpp2ILInjected.Token(Token = "0x6001014")]
158 [global::Cpp2ILInjected.Address(RVA = "0x1C8C5E4", Offset = "0x1C8C5E4", Length = "0x90")]
159 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
160 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.WindowsConsoleDriver), Member = "Clear", ReturnType = typeof(void))]
161 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
162 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
163 [global::System.Runtime.InteropServices.PreserveSig]
164 private static extern bool SetConsoleCursorPosition(global::System.IntPtr handle, global::System.Coord coord);
165
166 [global::Cpp2ILInjected.Token(Token = "0x6001015")]
167 [global::Cpp2ILInjected.Address(RVA = "0x1C8C838", Offset = "0x1C8C838", Length = "0x108")]
168 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
169 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.WindowsConsoleDriver), Member = "ReadKey", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(global::System.ConsoleKeyInfo))]
170 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
171 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
172 [global::System.Runtime.InteropServices.PreserveSig]
173 private static extern bool ReadConsoleInput(global::System.IntPtr handle, out global::System.InputRecord record, int length, out int nread);
174
175 [global::Cpp2ILInjected.Token(Token = "0x40008C4")]
176 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
177 private global::System.IntPtr inputHandle;
178
179 [global::Cpp2ILInjected.Token(Token = "0x40008C5")]
180 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
181 private global::System.IntPtr outputHandle;
182
183 [global::Cpp2ILInjected.Token(Token = "0x40008C6")]
184 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
185 private short defaultAttribute;
186 }
187}
class f__AnonymousType0<< Count > j__TPar
static bool SetConsoleCursorPosition(global::System.IntPtr handle, global::System.Coord coord)
static bool GetConsoleScreenBufferInfo(global::System.IntPtr handle, out global::System.ConsoleScreenBufferInfo info)
static bool FillConsoleOutputAttribute(global::System.IntPtr handle, short c, int size, global::System.Coord coord, out int written)
static global::System.IntPtr GetStdHandle(global::System.Handles handle)
static bool IsModifierKey(short virtualKeyCode)
static bool ReadConsoleInput(global::System.IntPtr handle, out global::System.InputRecord record, int length, out int nread)
global::System.IntPtr inputHandle
global::System.IntPtr outputHandle
global::System.ConsoleKeyInfo ReadKey(bool intercept)
static bool FillConsoleOutputCharacter(global::System.IntPtr handle, char c, int size, global::System.Coord coord, out int written)
Handles
Definition Handles.cs:8
IntPtr(int value)
Definition IntPtr.cs:46