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
MemoryMarshal.cs
Go to the documentation of this file.
1using System;
3using System.IO;
5using System.Text;
10
12{
13 [global::Cpp2ILInjected.Token(Token = "0x2000431")]
14 public static class MemoryMarshal
15 {
16 [global::Cpp2ILInjected.Token(Token = "0x6002151")]
17 [global::Cpp2ILInjected.Address(RVA = "0x1591E68", Offset = "0x1591E68", Length = "0xA8")]
18 [global::Cpp2ILInjected.CallAnalysis.DeduplicatedMethod]
19 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
20 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
21 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
22 [MethodImpl(256)]
23 public static global::System.Span<byte> AsBytes<T>(global::System.Span<T> span) where T : struct
24 {
25 throw null;
26 }
27
28 [global::Cpp2ILInjected.Token(Token = "0x6002152")]
29 [global::Cpp2ILInjected.Address(RVA = "0x1591F10", Offset = "0x1591F10", Length = "0xA8")]
30 [global::Cpp2ILInjected.CallAnalysis.DeduplicatedMethod]
31 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
32 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
33 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
34 [MethodImpl(256)]
35 public static global::System.ReadOnlySpan<byte> AsBytes<T>(global::System.ReadOnlySpan<T> span) where T : struct
36 {
37 throw null;
38 }
39
40 [global::Cpp2ILInjected.Token(Token = "0x6002153")]
41 [global::Cpp2ILInjected.Address(RVA = "0x1592108", Offset = "0x1592108", Length = "0x4")]
42 [global::Cpp2ILInjected.CallAnalysis.DeduplicatedMethod]
43 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "System.Net.Sockets.Socket", Member = "SendAsyncForNetworkStream", MemberParameters = new object[]
44 {
45 "System.ReadOnlyMemory`1<Byte>",
46 "System.Net.Sockets.SocketFlags",
47 typeof(global::System.Threading.CancellationToken)
48 }, ReturnType = typeof(global::System.Threading.Tasks.ValueTask))]
49 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
50 public static global::System.Memory<T> AsMemory<T>(global::System.ReadOnlyMemory<T> memory)
51 {
52 throw null;
53 }
54
55 [global::Cpp2ILInjected.Token(Token = "0x6002154")]
56 [global::Cpp2ILInjected.Address(RVA = "0x1592174", Offset = "0x1592174", Length = "0x4")]
57 [global::Cpp2ILInjected.CallAnalysis.DeduplicatedMethod]
58 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::Interop.Sys), Member = "Stat", MemberParameters = new object[]
59 {
60 typeof(global::System.ReadOnlySpan<char>),
61 typeof(ref global::Interop.Sys.FileStatus)
62 }, ReturnType = typeof(int))]
63 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::Interop.Sys), Member = "LStat", MemberParameters = new object[]
64 {
65 typeof(global::System.ReadOnlySpan<char>),
66 typeof(ref global::Interop.Sys.FileStatus)
67 }, ReturnType = typeof(int))]
68 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.BitConverter), Member = "TryWriteBytes", MemberParameters = new object[]
69 {
70 typeof(global::System.Span<byte>),
71 typeof(uint)
72 }, ReturnType = typeof(bool))]
73 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Convert), Member = "TryDecodeFromUtf16", MemberParameters = new object[]
74 {
75 typeof(global::System.ReadOnlySpan<char>),
76 typeof(global::System.Span<byte>),
77 typeof(ref int),
78 typeof(ref int)
79 }, ReturnType = typeof(bool))]
80 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Text.ASCIIEncoding), Member = "GetBytes", MemberParameters = new object[]
81 {
82 typeof(string),
83 typeof(int),
84 typeof(int),
85 typeof(byte[]),
86 typeof(int)
87 }, ReturnType = typeof(int))]
88 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Text.ASCIIEncoding), Member = "GetBytes", MemberParameters = new object[]
89 {
90 typeof(char[]),
91 typeof(int),
92 typeof(int),
93 typeof(byte[]),
94 typeof(int)
95 }, ReturnType = typeof(int))]
96 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Text.DecoderNLS), Member = "GetCharCount", MemberParameters = new object[]
97 {
98 typeof(byte[]),
99 typeof(int),
100 typeof(int),
101 typeof(bool)
102 }, ReturnType = typeof(int))]
103 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Text.DecoderNLS), Member = "GetChars", MemberParameters = new object[]
104 {
105 typeof(byte[]),
106 typeof(int),
107 typeof(int),
108 typeof(char[]),
109 typeof(int),
110 typeof(bool)
111 }, ReturnType = typeof(int))]
112 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Text.DecoderNLS), Member = "Convert", MemberParameters = new object[]
113 {
114 typeof(byte[]),
115 typeof(int),
116 typeof(int),
117 typeof(char[]),
118 typeof(int),
119 typeof(int),
120 typeof(bool),
121 typeof(ref int),
122 typeof(ref int),
123 typeof(ref bool)
124 }, ReturnType = typeof(void))]
125 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Text.EncoderNLS), Member = "GetBytes", MemberParameters = new object[]
126 {
127 typeof(char[]),
128 typeof(int),
129 typeof(int),
130 typeof(byte[]),
131 typeof(int),
132 typeof(bool)
133 }, ReturnType = typeof(int))]
134 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Text.EncoderNLS), Member = "Convert", MemberParameters = new object[]
135 {
136 typeof(char[]),
137 typeof(int),
138 typeof(int),
139 typeof(byte[]),
140 typeof(int),
141 typeof(int),
142 typeof(bool),
143 typeof(ref int),
144 typeof(ref int),
145 typeof(ref bool)
146 }, ReturnType = typeof(void))]
147 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Text.EncodingNLS), Member = "GetBytes", MemberParameters = new object[]
148 {
149 typeof(string),
150 typeof(int),
151 typeof(int),
152 typeof(byte[]),
153 typeof(int)
154 }, ReturnType = typeof(int))]
155 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Text.EncodingNLS), Member = "GetBytes", MemberParameters = new object[]
156 {
157 typeof(char[]),
158 typeof(int),
159 typeof(int),
160 typeof(byte[]),
161 typeof(int)
162 }, ReturnType = typeof(int))]
163 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Text.UTF32Encoding), Member = "GetBytes", MemberParameters = new object[]
164 {
165 typeof(string),
166 typeof(int),
167 typeof(int),
168 typeof(byte[]),
169 typeof(int)
170 }, ReturnType = typeof(int))]
171 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Text.UTF32Encoding), Member = "GetBytes", MemberParameters = new object[]
172 {
173 typeof(char[]),
174 typeof(int),
175 typeof(int),
176 typeof(byte[]),
177 typeof(int)
178 }, ReturnType = typeof(int))]
179 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Text.UTF7Encoding), Member = "GetBytes", MemberParameters = new object[]
180 {
181 typeof(string),
182 typeof(int),
183 typeof(int),
184 typeof(byte[]),
185 typeof(int)
186 }, ReturnType = typeof(int))]
187 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Text.UTF7Encoding), Member = "GetBytes", MemberParameters = new object[]
188 {
189 typeof(char[]),
190 typeof(int),
191 typeof(int),
192 typeof(byte[]),
193 typeof(int)
194 }, ReturnType = typeof(int))]
195 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Text.UTF8Encoding), Member = "GetBytes", MemberParameters = new object[]
196 {
197 typeof(string),
198 typeof(int),
199 typeof(int),
200 typeof(byte[]),
201 typeof(int)
202 }, ReturnType = typeof(int))]
203 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Text.UTF8Encoding), Member = "GetBytes", MemberParameters = new object[]
204 {
205 typeof(char[]),
206 typeof(int),
207 typeof(int),
208 typeof(byte[]),
209 typeof(int)
210 }, ReturnType = typeof(int))]
211 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Text.UnicodeEncoding), Member = "GetBytes", MemberParameters = new object[]
212 {
213 typeof(string),
214 typeof(int),
215 typeof(int),
216 typeof(byte[]),
217 typeof(int)
218 }, ReturnType = typeof(int))]
219 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Text.UnicodeEncoding), Member = "GetBytes", MemberParameters = new object[]
220 {
221 typeof(char[]),
222 typeof(int),
223 typeof(int),
224 typeof(byte[]),
225 typeof(int)
226 }, ReturnType = typeof(int))]
227 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.IO.PinnedBufferMemoryStream), Member = ".ctor", MemberParameters = new object[] { typeof(byte[]) }, ReturnType = typeof(void))]
228 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.IO.UnmanagedMemoryStream), Member = "ReadCore", MemberParameters = new object[] { typeof(global::System.Span<byte>) }, ReturnType = typeof(int))]
229 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 23)]
230 public static ref T GetReference<T>(global::System.Span<T> span)
231 {
232 throw null;
233 }
234
235 [global::Cpp2ILInjected.Token(Token = "0x6002155")]
236 [global::Cpp2ILInjected.Address(RVA = "0x1592170", Offset = "0x1592170", Length = "0x4")]
237 [global::Cpp2ILInjected.CallAnalysis.DeduplicatedMethod]
238 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Convert), Member = "ToBase64String", MemberParameters = new object[]
239 {
240 typeof(global::System.ReadOnlySpan<byte>),
241 typeof(global::System.Base64FormattingOptions)
242 }, ReturnType = typeof(string))]
243 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Marvin), Member = "ComputeHash32", MemberParameters = new object[]
244 {
245 typeof(global::System.ReadOnlySpan<byte>),
247 }, ReturnType = typeof(int))]
248 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.IO.UnmanagedMemoryStream), Member = "WriteCore", MemberParameters = new object[] { typeof(global::System.ReadOnlySpan<byte>) }, ReturnType = typeof(void))]
249 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Globalization.CompareInfo), Member = "GetIgnoreCaseHash", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(int))]
250 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "System.Net.IPAddress", Member = "GetHashCode", ReturnType = typeof(int))]
251 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 6)]
252 public static ref T GetReference<T>(global::System.ReadOnlySpan<T> span)
253 {
254 throw null;
255 }
256
257 [global::Cpp2ILInjected.Token(Token = "0x6002156")]
258 [global::Cpp2ILInjected.Address(RVA = "0x1592134", Offset = "0x1592134", Length = "0xC")]
259 [global::Cpp2ILInjected.CallAnalysis.DeduplicatedMethod]
260 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
261 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
262 [MethodImpl(256)]
263 internal static ref T GetNonNullPinnableReference<T>(global::System.Span<T> span)
264 {
265 throw null;
266 }
267
268 [global::Cpp2ILInjected.Token(Token = "0x6002157")]
269 [global::Cpp2ILInjected.Address(RVA = "0x1592128", Offset = "0x1592128", Length = "0xC")]
270 [global::Cpp2ILInjected.CallAnalysis.DeduplicatedMethod]
271 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
272 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
273 [MethodImpl(256)]
274 internal static ref T GetNonNullPinnableReference<T>(global::System.ReadOnlySpan<T> span)
275 {
276 throw null;
277 }
278
279 [global::Cpp2ILInjected.Token(Token = "0x6002158")]
280 [global::Cpp2ILInjected.Address(RVA = "0x1592110", Offset = "0x1592110", Length = "0x8")]
281 [global::Cpp2ILInjected.CallAnalysis.DeduplicatedMethod]
282 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
283 [MethodImpl(256)]
284 public static global::System.ReadOnlySpan<T> CreateReadOnlySpan<T>(ref T reference, int length)
285 {
286 throw null;
287 }
288
289 [global::Cpp2ILInjected.Token(Token = "0x6002159")]
290 [global::Cpp2ILInjected.Address(RVA = "0x1592194", Offset = "0x1592194", Length = "0x1B4")]
291 [global::Cpp2ILInjected.CallAnalysis.DeduplicatedMethod]
292 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
293 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.IO.MemoryStream), Member = "ReadAsync", MemberParameters = new object[]
294 {
295 typeof(global::System.Memory<byte>),
296 typeof(global::System.Threading.CancellationToken)
297 }, ReturnType = typeof(global::System.Threading.Tasks.ValueTask<int>))]
298 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.IO.MemoryStream), Member = "WriteAsync", MemberParameters = new object[]
299 {
300 typeof(global::System.ReadOnlyMemory<byte>),
301 typeof(global::System.Threading.CancellationToken)
302 }, ReturnType = typeof(global::System.Threading.Tasks.ValueTask))]
303 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.IO.UnmanagedMemoryStream), Member = "ReadAsync", MemberParameters = new object[]
304 {
305 typeof(global::System.Memory<byte>),
306 typeof(global::System.Threading.CancellationToken)
307 }, ReturnType = typeof(global::System.Threading.Tasks.ValueTask<int>))]
308 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.IO.UnmanagedMemoryStream), Member = "WriteAsync", MemberParameters = new object[]
309 {
310 typeof(global::System.ReadOnlyMemory<byte>),
311 typeof(global::System.Threading.CancellationToken)
312 }, ReturnType = typeof(global::System.Threading.Tasks.ValueTask))]
313 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.IO.Stream), Member = "ReadAsync", MemberParameters = new object[]
314 {
315 typeof(global::System.Memory<byte>),
316 typeof(global::System.Threading.CancellationToken)
317 }, ReturnType = typeof(global::System.Threading.Tasks.ValueTask<int>))]
318 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.IO.Stream), Member = "WriteAsync", MemberParameters = new object[]
319 {
320 typeof(global::System.ReadOnlyMemory<byte>),
321 typeof(global::System.Threading.CancellationToken)
322 }, ReturnType = typeof(global::System.Threading.Tasks.ValueTask))]
323 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "System.Net.Sockets.Socket", Member = "ReceiveAsyncApm", MemberParameters = new object[] { "System.Memory`1<Byte>", "System.Net.Sockets.SocketFlags" }, ReturnType = "System.Threading.Tasks.Task`1<Int32>")]
324 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "System.Net.Sockets.Socket", Member = "SendAsyncApm", MemberParameters = new object[] { "System.ReadOnlyMemory`1<Byte>", "System.Net.Sockets.SocketFlags" }, ReturnType = "System.Threading.Tasks.Task`1<Int32>")]
325 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 8)]
326 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.ArraySegment<>), Member = ".ctor", MemberParameters = new object[]
327 {
328 "T[]",
329 typeof(int),
330 typeof(int)
331 }, ReturnType = typeof(void))]
332 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
333 public static bool TryGetArray<T>(global::System.ReadOnlyMemory<T> memory, out global::System.ArraySegment<T> segment)
334 {
335 throw null;
336 }
337 }
338}
class f__AnonymousType0<< Count > j__TPar
static ref T GetReference< T >(global::System.Span< T > span)
static ref T GetNonNullPinnableReference< T >(global::System.Span< T > span)
static bool TryGetArray< T >(global::System.ReadOnlyMemory< T > memory, out global::System.ArraySegment< T > segment)
static global::System.Span< byte > AsBytes< T >(global::System.Span< T > span)
static global::System.ReadOnlySpan< T > CreateReadOnlySpan< T >(ref T reference, int length)
static global::System.Memory< T > AsMemory< T >(global::System.ReadOnlyMemory< T > memory)