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
SafeBuffer.cs
Go to the documentation of this file.
1using System;
2using System.IO;
6
8{
9 [global::Cpp2ILInjected.Token(Token = "0x2000433")]
10 public abstract class SafeBuffer : Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid
11 {
12 [global::System.CLSCompliant(false)]
13 [global::Cpp2ILInjected.Token(Token = "0x600215A")]
14 [global::Cpp2ILInjected.Address(RVA = "0x1B6FAA0", Offset = "0x1B6FAA0", Length = "0x108")]
15 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.IO.UnmanagedMemoryStream), Member = "ReadCore", MemberParameters = new object[] { typeof(global::System.Span<byte>) }, ReturnType = typeof(int))]
16 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.IO.UnmanagedMemoryStream), Member = "ReadByte", ReturnType = typeof(int))]
17 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.IO.UnmanagedMemoryStream), Member = "WriteCore", MemberParameters = new object[] { typeof(global::System.ReadOnlySpan<byte>) }, ReturnType = typeof(void))]
18 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.IO.UnmanagedMemoryStream), Member = "WriteByte", MemberParameters = new object[] { typeof(byte) }, ReturnType = typeof(void))]
19 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
20 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.UIntPtr), Member = "op_Equality", MemberParameters = new object[]
21 {
22 typeof(global::System.UIntPtr),
23 typeof(global::System.UIntPtr)
24 }, ReturnType = typeof(bool))]
25 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SafeHandle), Member = "DangerousAddRef", MemberParameters = new object[] { typeof(ref bool) }, ReturnType = typeof(void))]
26 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.IntPtr), Member = "op_Explicit", MemberParameters = new object[] { typeof(global::System.IntPtr) }, ReturnType = typeof(void*))]
27 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SafeBuffer), Member = "NotInitialized", ReturnType = typeof(global::System.InvalidOperationException))]
28 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 8)]
29 public unsafe void AcquirePointer(ref byte* pointer)
30 {
31 throw null;
32 }
33
34 [global::Cpp2ILInjected.Token(Token = "0x600215B")]
35 [global::Cpp2ILInjected.Address(RVA = "0x1B6FCD8", Offset = "0x1B6FCD8", Length = "0xDC")]
36 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.IO.UnmanagedMemoryStream), Member = "ReadCore", MemberParameters = new object[] { typeof(global::System.Span<byte>) }, ReturnType = typeof(int))]
37 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.IO.UnmanagedMemoryStream), Member = "ReadByte", ReturnType = typeof(int))]
38 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.IO.UnmanagedMemoryStream), Member = "WriteCore", MemberParameters = new object[] { typeof(global::System.ReadOnlySpan<byte>) }, ReturnType = typeof(void))]
39 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.IO.UnmanagedMemoryStream), Member = "WriteByte", MemberParameters = new object[] { typeof(byte) }, ReturnType = typeof(void))]
40 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 8)]
41 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.UIntPtr), Member = "op_Equality", MemberParameters = new object[]
42 {
43 typeof(global::System.UIntPtr),
44 typeof(global::System.UIntPtr)
45 }, ReturnType = typeof(bool))]
46 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SafeHandle), Member = "DangerousReleaseInternal", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
47 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SafeBuffer), Member = "NotInitialized", ReturnType = typeof(global::System.InvalidOperationException))]
48 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 8)]
49 public void ReleasePointer()
50 {
51 throw null;
52 }
53
54 [global::Cpp2ILInjected.Token(Token = "0x600215C")]
55 [global::Cpp2ILInjected.Address(RVA = "0x1B6FBA8", Offset = "0x1B6FBA8", Length = "0x6C")]
56 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SafeBuffer), Member = "AcquirePointer", MemberParameters = new object[] { typeof(ref byte*) }, ReturnType = typeof(void))]
57 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SafeBuffer), Member = "ReleasePointer", ReturnType = typeof(void))]
58 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
59 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.InvalidOperationException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
60 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
61 private unsafe static global::System.InvalidOperationException NotInitialized()
62 {
63 throw null;
64 }
65
66 // Note: this type is marked as 'beforefieldinit'.
67 [global::Cpp2ILInjected.Token(Token = "0x600215D")]
68 [global::Cpp2ILInjected.Address(RVA = "0x1B6FDBC", Offset = "0x1B6FDBC", Length = "0xB0")]
69 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
70 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
71 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.UIntPtr), Member = "get_Size", ReturnType = typeof(int))]
72 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.UIntPtr), Member = "op_Explicit", MemberParameters = new object[] { typeof(uint) }, ReturnType = typeof(global::System.UIntPtr))]
73 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.UIntPtr), Member = "op_Explicit", MemberParameters = new object[] { typeof(ulong) }, ReturnType = typeof(global::System.UIntPtr))]
74 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
75 static SafeBuffer()
76 {
77 throw null;
78 }
79
80 [global::Cpp2ILInjected.Token(Token = "0x40011F7")]
81 private static readonly global::System.UIntPtr Uninitialized;
82
83 [global::Cpp2ILInjected.Token(Token = "0x40011F8")]
84 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
85 private global::System.UIntPtr _numBytes;
86 }
87}
class f__AnonymousType0<< Count > j__TPar
static readonly global::System.UIntPtr Uninitialized
Definition SafeBuffer.cs:81
unsafe void AcquirePointer(ref byte *pointer)
Definition SafeBuffer.cs:29
static unsafe global::System.InvalidOperationException NotInitialized()
Definition SafeBuffer.cs:61
UIntPtr(ulong value)
Definition UIntPtr.cs:20