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
SafeBuffer.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x02000433 RID: 1075
9 {
10 // Token: 0x0600215A RID: 8538 RVA: 0x0004BEE0 File Offset: 0x0004A0E0
11 [CLSCompliant(false)]
12 public unsafe void AcquirePointer(byte* pointer)
13 {
15 if (!true)
16 {
17 }
18 bool flag = numBytes == 0;
19 base.DangerousAddRef(false);
20 void* ptr = (void*)this.handle;
21 pointer->m_value = ptr;
22 }
23
24 // Token: 0x0600215B RID: 8539 RVA: 0x0004BF20 File Offset: 0x0004A120
25 public void ReleasePointer()
26 {
28 if (!true)
29 {
30 }
31 long num = 0L;
32 base.DangerousReleaseInternal(num != 0L);
33 }
34
35 // Token: 0x0600215C RID: 8540 RVA: 0x0000207A File Offset: 0x0000027A
37 {
38 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
39 }
40
41 // Token: 0x0600215D RID: 8541 RVA: 0x0004BF48 File Offset: 0x0004A148
42 // Note: this type is marked as 'beforefieldinit'.
43 static SafeBuffer()
44 {
45 if (!true)
46 {
47 }
48 int size = UIntPtr.Size;
49 UIntPtr uintPtr = (UIntPtr)((uint)(-1073741824));
50 }
51
52 // Token: 0x040011F7 RID: 4599
54
55 // Token: 0x040011F8 RID: 4600
57 }
58}
class f__AnonymousType0<< Count > j__TPar
static InvalidOperationException NotInitialized()
Definition SafeBuffer.cs:36
static readonly UIntPtr Uninitialized
Definition SafeBuffer.cs:53
unsafe void AcquirePointer(byte *pointer)
Definition SafeBuffer.cs:12
static int Size
Definition UIntPtr.cs:89