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
UnsafeUtility.cs
Go to the documentation of this file.
1using System;
5using UnityEngine;
8
10{
11 [StaticAccessor("UnsafeUtility", StaticAccessorType.DoubleColon)]
12 [NativeHeader("Runtime/Export/Unsafe/UnsafeUtility.bindings.h")]
13 [global::Cpp2ILInjected.Token(Token = "0x200001E")]
14 public static class UnsafeUtility
15 {
16 [global::Cpp2ILInjected.Token(Token = "0x600001F")]
17 [global::Cpp2ILInjected.Address(RVA = "0x15A3414", Offset = "0x15A3414", Length = "0x14")]
18 [global::Cpp2ILInjected.CallAnalysis.DeduplicatedMethod]
19 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
20 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
21 public unsafe static T ReadArrayElement<T>(void* source, int index)
22 {
23 throw null;
24 }
25
26 [global::Cpp2ILInjected.Token(Token = "0x6000020")]
27 [global::Cpp2ILInjected.Address(RVA = "0x15A34D4", Offset = "0x15A34D4", Length = "0x14")]
28 [global::Cpp2ILInjected.CallAnalysis.DeduplicatedMethod]
29 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
30 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
31 public unsafe static void WriteArrayElement<T>(void* destination, int index, T value)
32 {
33 throw null;
34 }
35
36 [global::Cpp2ILInjected.Token(Token = "0x6000021")]
37 [global::Cpp2ILInjected.Address(RVA = "0x15A3474", Offset = "0x15A3474", Length = "0x8")]
38 [global::Cpp2ILInjected.CallAnalysis.DeduplicatedMethod]
39 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
40 public static int SizeOf<T>() where T : struct
41 {
42 throw null;
43 }
44
45 [global::Cpp2ILInjected.Token(Token = "0x6000022")]
46 [global::Cpp2ILInjected.Address(RVA = "0x1F6A054", Offset = "0x1F6A054", Length = "0x58")]
47 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UnsafeUtility), Member = "GetReasonForTypeNonBlittableImpl", MemberParameters = new object[]
48 {
49 typeof(Type),
50 typeof(string)
51 }, ReturnType = typeof(string))]
52 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UnsafeUtility), Member = "IsArrayBlittable", MemberParameters = new object[] { typeof(Array) }, ReturnType = typeof(bool))]
53 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
54 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Type), Member = "get_IsValueType", ReturnType = typeof(bool))]
55 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
56 private static bool IsBlittableValueType(Type t)
57 {
58 throw null;
59 }
60
61 [global::Cpp2ILInjected.Token(Token = "0x6000023")]
62 [global::Cpp2ILInjected.Address(RVA = "0x1F6A0E8", Offset = "0x1F6A0E8", Length = "0x1AC")]
63 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
64 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UnsafeUtility), Member = "GetReasonForTypeNonBlittableImpl", MemberParameters = new object[]
65 {
66 typeof(Type),
67 typeof(string)
68 }, ReturnType = typeof(string))]
69 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UnsafeUtility), Member = "GetReasonForArrayNonBlittable", MemberParameters = new object[] { typeof(Array) }, ReturnType = typeof(string))]
70 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
71 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Type), Member = "get_IsValueType", ReturnType = typeof(bool))]
72 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Type), Member = "get_IsPrimitive", ReturnType = typeof(bool))]
73 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Format", MemberParameters = new object[]
74 {
75 typeof(string),
76 typeof(object),
77 typeof(object)
78 }, ReturnType = typeof(string))]
79 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnsafeUtility), Member = "IsBlittableValueType", MemberParameters = new object[] { typeof(Type) }, ReturnType = typeof(bool))]
80 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnsafeUtility), Member = "GetReasonForTypeNonBlittableImpl", MemberParameters = new object[]
81 {
82 typeof(Type),
83 typeof(string)
84 }, ReturnType = typeof(string))]
85 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
86 {
87 typeof(string),
88 typeof(string)
89 }, ReturnType = typeof(string))]
90 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
91 private static string GetReasonForTypeNonBlittableImpl(Type t, string name)
92 {
93 throw null;
94 }
95
96 [global::Cpp2ILInjected.Token(Token = "0x6000024")]
97 [global::Cpp2ILInjected.Address(RVA = "0x1F6A294", Offset = "0x1F6A294", Length = "0x24")]
98 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
99 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Mesh), Member = "SetVertexBufferData", MemberTypeParameters = new object[] { "T" }, MemberParameters = new object[]
100 {
101 "T[]",
102 typeof(int),
103 typeof(int),
104 typeof(int),
105 typeof(int),
107 }, ReturnType = typeof(void))]
108 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Mesh), Member = "SetIndexBufferData", MemberTypeParameters = new object[] { "T" }, MemberParameters = new object[]
109 {
110 "T[]",
111 typeof(int),
112 typeof(int),
113 typeof(int),
115 }, ReturnType = typeof(void))]
116 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
117 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = "GetType", ReturnType = typeof(Type))]
118 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnsafeUtility), Member = "IsBlittableValueType", MemberParameters = new object[] { typeof(Type) }, ReturnType = typeof(bool))]
119 internal static bool IsArrayBlittable(Array arr)
120 {
121 throw null;
122 }
123
124 [global::Cpp2ILInjected.Token(Token = "0x6000025")]
125 [global::Cpp2ILInjected.Address(RVA = "0x1F6A2B8", Offset = "0x1F6A2B8", Length = "0x3C")]
126 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
127 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Mesh), Member = "SetVertexBufferData", MemberTypeParameters = new object[] { "T" }, MemberParameters = new object[]
128 {
129 "T[]",
130 typeof(int),
131 typeof(int),
132 typeof(int),
133 typeof(int),
135 }, ReturnType = typeof(void))]
136 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Mesh), Member = "SetIndexBufferData", MemberTypeParameters = new object[] { "T" }, MemberParameters = new object[]
137 {
138 "T[]",
139 typeof(int),
140 typeof(int),
141 typeof(int),
143 }, ReturnType = typeof(void))]
144 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
145 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = "GetType", ReturnType = typeof(Type))]
146 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnsafeUtility), Member = "GetReasonForTypeNonBlittableImpl", MemberParameters = new object[]
147 {
148 typeof(Type),
149 typeof(string)
150 }, ReturnType = typeof(string))]
151 internal static string GetReasonForArrayNonBlittable(Array arr)
152 {
153 throw null;
154 }
155
156 [global::Cpp2ILInjected.Token(Token = "0x6000026")]
157 [global::Cpp2ILInjected.Address(RVA = "0x15A339C", Offset = "0x15A339C", Length = "0x3C")]
158 [global::Cpp2ILInjected.CallAnalysis.DeduplicatedMethod]
159 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
160 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "Terraria.TileData", Member = "Allocate", MemberParameters = new object[]
161 {
162 typeof(int),
163 typeof(int)
164 }, ReturnType = typeof(void))]
165 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
166 public static int AlignOf<T>() where T : struct
167 {
168 throw null;
169 }
170
171 [ThreadSafe(ThrowsException = true)]
172 [global::Cpp2ILInjected.Token(Token = "0x6000027")]
173 [global::Cpp2ILInjected.Address(RVA = "0x1F6A2F4", Offset = "0x1F6A2F4", Length = "0x54")]
174 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "Terraria.TileData", Member = "Allocate", MemberParameters = new object[]
175 {
176 typeof(int),
177 typeof(int)
178 }, ReturnType = typeof(void))]
179 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "Terraria.Map.WorldMap", Member = "Allocate", MemberParameters = new object[]
180 {
181 typeof(int),
182 typeof(int)
183 }, ReturnType = typeof(void))]
184 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
185 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
186 [MethodImpl(4096)]
187 public unsafe static extern void* Malloc(long size, int alignment, Allocator allocator);
188
189 [ThreadSafe(ThrowsException = true)]
190 [global::Cpp2ILInjected.Token(Token = "0x6000028")]
191 [global::Cpp2ILInjected.Address(RVA = "0x1F6A348", Offset = "0x1F6A348", Length = "0x44")]
192 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "Terraria.TileData", Member = "Allocate", MemberParameters = new object[]
193 {
194 typeof(int),
195 typeof(int)
196 }, ReturnType = typeof(void))]
197 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "Terraria.Map.WorldMap", Member = "Allocate", MemberParameters = new object[]
198 {
199 typeof(int),
200 typeof(int)
201 }, ReturnType = typeof(void))]
202 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NativeArray<>), Member = "Dispose", ReturnType = typeof(void))]
203 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
204 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
205 [MethodImpl(4096)]
206 public unsafe static extern void Free(void* memory, Allocator allocator);
207
208 [ThreadSafe(ThrowsException = true)]
209 [global::Cpp2ILInjected.Token(Token = "0x6000029")]
210 [global::Cpp2ILInjected.Address(RVA = "0x1F6A38C", Offset = "0x1F6A38C", Length = "0x54")]
211 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NativeArray<>), Member = "Copy", MemberParameters = new object[]
212 {
213 "T[]",
214 typeof(int),
215 "Unity.Collections.NativeArray`1<T>",
216 typeof(int),
217 typeof(int)
218 }, ReturnType = typeof(void))]
219 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
220 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
221 [MethodImpl(4096)]
222 public unsafe static extern void MemCpy(void* destination, void* source, long size);
223
224 [ThreadSafe(ThrowsException = true)]
225 [global::Cpp2ILInjected.Token(Token = "0x600002A")]
226 [global::Cpp2ILInjected.Address(RVA = "0x1F6A3E0", Offset = "0x1F6A3E0", Length = "0x54")]
227 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
228 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
229 [MethodImpl(4096)]
230 public unsafe static extern void MemSet(void* destination, byte value, long size);
231
232 [global::Cpp2ILInjected.Token(Token = "0x600002B")]
233 [global::Cpp2ILInjected.Address(RVA = "0x1F6A434", Offset = "0x1F6A434", Length = "0x48")]
234 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "Terraria.TileData", Member = "Allocate", MemberParameters = new object[]
235 {
236 typeof(int),
237 typeof(int)
238 }, ReturnType = typeof(void))]
239 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
240 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
241 public unsafe static void MemClear(void* destination, long size)
242 {
243 throw null;
244 }
245
246 [ThreadSafe]
247 [global::Cpp2ILInjected.Token(Token = "0x600002C")]
248 [global::Cpp2ILInjected.Address(RVA = "0x1F6A0AC", Offset = "0x1F6A0AC", Length = "0x3C")]
249 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
250 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
251 [MethodImpl(4096)]
252 public static extern bool IsBlittable(Type type);
253
254 [global::Cpp2ILInjected.Token(Token = "0x200001F")]
255 private struct AlignOfHelper<T> where T : struct
256 {
257 [global::Cpp2ILInjected.Token(Token = "0x4000048")]
258 [global::Cpp2ILInjected.FieldOffset(Offset = "0x0")]
259 public byte dummy;
260
261 [global::Cpp2ILInjected.Token(Token = "0x4000049")]
262 [global::Cpp2ILInjected.FieldOffset(Offset = "0x0")]
263 public T data;
264 }
265 }
266}
class f__AnonymousType0<< Count > j__TPar
static unsafe void MemSet(void *destination, byte value, long size)
static unsafe void Free(void *memory, Allocator allocator)
static string GetReasonForTypeNonBlittableImpl(Type t, string name)
static unsafe void MemClear(void *destination, long size)
static unsafe void * Malloc(long size, int alignment, Allocator allocator)
static unsafe void WriteArrayElement< T >(void *destination, int index, T value)
static unsafe void MemCpy(void *destination, void *source, long size)
static unsafe T ReadArrayElement< T >(void *source, int index)
static string GetReasonForArrayNonBlittable(Array arr)