terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
UnsafeUtility.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x0200001E RID: 30
8 [StaticAccessor("UnsafeUtility", StaticAccessorType.DoubleColon)]
9 [NativeHeader("Runtime/Export/Unsafe/UnsafeUtility.bindings.h")]
10 public static class UnsafeUtility
11 {
12 // Token: 0x0600001F RID: 31 RVA: 0x000021B3 File Offset: 0x000003B3
13 public unsafe static T ReadArrayElement<T>(void* source, int index)
14 {
15 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
16 }
17
18 // Token: 0x06000020 RID: 32 RVA: 0x00002268 File Offset: 0x00000468
19 public unsafe static void WriteArrayElement<T>(void* destination, int index, T value)
20 {
21 }
22
23 // Token: 0x06000021 RID: 33 RVA: 0x00002278 File Offset: 0x00000478
24 public static int SizeOf<T>() where T : struct
25 {
26 return 2;
27 }
28
29 // Token: 0x06000022 RID: 34 RVA: 0x00002288 File Offset: 0x00000488
30 private static bool IsBlittableValueType(Type t)
31 {
32 throw new MissingMethodException();
33 }
34
35 // Token: 0x06000023 RID: 35 RVA: 0x0000229C File Offset: 0x0000049C
36 private static string GetReasonForTypeNonBlittableImpl(Type t, string name)
37 {
38 return string.Format("{0} is not blittable because it is not of value type ({1})\n", t, name);
39 }
40
41 // Token: 0x06000024 RID: 36 RVA: 0x000022D4 File Offset: 0x000004D4
42 internal static bool IsArrayBlittable(Array arr)
43 {
44 Type type;
46 }
47
48 // Token: 0x06000025 RID: 37 RVA: 0x000022E8 File Offset: 0x000004E8
49 internal static string GetReasonForArrayNonBlittable(Array arr)
50 {
51 string text;
52 return text;
53 }
54
55 // Token: 0x06000026 RID: 38 RVA: 0x000021B3 File Offset: 0x000003B3
56 public static int AlignOf<T>() where T : struct
57 {
58 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
59 }
60
61 // Token: 0x06000027 RID: 39 RVA: 0x000022F8 File Offset: 0x000004F8
62 [ThreadSafe(ThrowsException = true)]
63 public unsafe static void* Malloc(long size, int alignment, Allocator allocator)
64 {
65 throw new MissingMethodException();
66 }
67
68 // Token: 0x06000028 RID: 40 RVA: 0x0000230C File Offset: 0x0000050C
69 [ThreadSafe(ThrowsException = true)]
70 public unsafe static void Free(void* memory, Allocator allocator)
71 {
72 throw new MissingMethodException();
73 }
74
75 // Token: 0x06000029 RID: 41 RVA: 0x00002320 File Offset: 0x00000520
76 [ThreadSafe(ThrowsException = true)]
77 public unsafe static void MemCpy(void* destination, void* source, long size)
78 {
79 throw new MissingMethodException();
80 }
81
82 // Token: 0x0600002A RID: 42 RVA: 0x00002334 File Offset: 0x00000534
83 [ThreadSafe(ThrowsException = true)]
84 public unsafe static void MemSet(void* destination, byte value, long size)
85 {
86 throw new MissingMethodException();
87 }
88
89 // Token: 0x0600002B RID: 43 RVA: 0x00002348 File Offset: 0x00000548
90 public unsafe static void MemClear(void* destination, long size)
91 {
92 throw new MissingMethodException();
93 }
94
95 // Token: 0x0600002C RID: 44 RVA: 0x0000235C File Offset: 0x0000055C
97 public static bool IsBlittable(Type type)
98 {
99 throw new MissingMethodException();
100 }
101
102 // Token: 0x0200001F RID: 31
103 private struct AlignOfHelper<T> where T : struct
104 {
105 // Token: 0x04000048 RID: 72
106 public byte dummy;
107
108 // Token: 0x04000049 RID: 73
109 public T data;
110 }
111 }
112}
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)