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.
1
using
System
;
2
using
Cpp2IlInjected
;
3
using
Microsoft.Win32.SafeHandles
;
4
5
namespace
System.Runtime.InteropServices
6
{
7
// Token: 0x02000433 RID: 1075
8
public
abstract
class
SafeBuffer
:
SafeHandleZeroOrMinusOneIsInvalid
9
{
10
// Token: 0x0600215A RID: 8538 RVA: 0x0004BEE0 File Offset: 0x0004A0E0
11
[
CLSCompliant
(
false
)]
12
public
unsafe
void
AcquirePointer
(
byte
*
pointer
)
13
{
14
UIntPtr
numBytes
= this.
_numBytes
;
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
{
27
UIntPtr
numBytes
= this.
_numBytes
;
28
if
(!
true
)
29
{
30
}
31
long
num = 0
L
;
32
base
.DangerousReleaseInternal(num != 0
L
);
33
}
34
35
// Token: 0x0600215C RID: 8540 RVA: 0x0000207A File Offset: 0x0000027A
36
private
static
InvalidOperationException
NotInitialized
()
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
53
private
static
readonly
UIntPtr
Uninitialized
;
54
55
// Token: 0x040011F8 RID: 4600
56
private
UIntPtr
_numBytes
;
57
}
58
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Cpp2IlInjected.AnalysisFailedException
Definition
AnalysisFailedException.cs:7
Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid
Definition
SafeHandleZeroOrMinusOneIsInvalid.cs:9
System.InvalidOperationException
Definition
InvalidOperationException.cs:9
System.Runtime.InteropServices.SafeBuffer._numBytes
UIntPtr _numBytes
Definition
SafeBuffer.cs:56
System.Runtime.InteropServices.SafeBuffer.ReleasePointer
void ReleasePointer()
Definition
SafeBuffer.cs:25
System.Runtime.InteropServices.SafeBuffer.SafeBuffer
static SafeBuffer()
Definition
SafeBuffer.cs:43
System.Runtime.InteropServices.SafeBuffer.NotInitialized
static InvalidOperationException NotInitialized()
Definition
SafeBuffer.cs:36
System.Runtime.InteropServices.SafeBuffer.Uninitialized
static readonly UIntPtr Uninitialized
Definition
SafeBuffer.cs:53
System.Runtime.InteropServices.SafeBuffer.AcquirePointer
unsafe void AcquirePointer(byte *pointer)
Definition
SafeBuffer.cs:12
System.Runtime.InteropServices.SafeBuffer
Definition
SafeBuffer.cs:9
System.Runtime.InteropServices.SafeHandle.handle
IntPtr handle
Definition
SafeHandle.cs:166
Cpp2IlInjected
Definition
AnalysisFailedException.cs:4
Microsoft.Win32.SafeHandles
Definition
CriticalHandleMinusOneIsInvalid.cs:6
System.Runtime.InteropServices
Definition
_Activator.cs:4
System.ExceptionArgument.pointer
@ pointer
System.ConsoleKey.L
@ L
System
Definition
__ComObject.cs:4
System.UIntPtr.Size
static int Size
Definition
UIntPtr.cs:89
System.UIntPtr
Definition
UIntPtr.cs:13
source
mscorlib
System
Runtime
InteropServices
SafeBuffer.cs
Generated by
1.10.0