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
BufferPool.cs
Go to the documentation of this file.
1using System;
6using Terraria.Net;
7
9{
10 [global::Cpp2ILInjected.Token(Token = "0x200061A")]
11 public static class BufferPool
12 {
13 [global::Cpp2ILInjected.Token(Token = "0x60035BC")]
14 [global::Cpp2ILInjected.Address(RVA = "0x13DAFE0", Offset = "0x13DAFE0", Length = "0x38C")]
15 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
16 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BufferPool), Member = "Request", MemberParameters = new object[]
17 {
18 typeof(byte[]),
19 typeof(int),
20 typeof(int)
21 }, ReturnType = typeof(CachedBuffer))]
22 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NetPacket), Member = ".ctor", MemberParameters = new object[]
23 {
24 typeof(ushort),
25 typeof(int)
26 }, ReturnType = typeof(void))]
27 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
28 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Enter", MemberParameters = new object[]
29 {
30 typeof(object),
31 typeof(ref bool)
32 }, ReturnType = typeof(void))]
33 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CachedBuffer), Member = ".ctor", MemberParameters = new object[] { typeof(byte[]) }, ReturnType = typeof(void))]
34 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Queue<>), Member = "Dequeue", ReturnType = "T")]
35 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Exit", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
36 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 26)]
37 public static CachedBuffer Request(int size)
38 {
39 throw null;
40 }
41
42 [global::Cpp2ILInjected.Token(Token = "0x60035BD")]
43 [global::Cpp2ILInjected.Address(RVA = "0x13DB48C", Offset = "0x13DB48C", Length = "0x8C")]
44 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
45 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BufferPool), Member = "Request", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(CachedBuffer))]
46 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Buffer), Member = "BlockCopy", MemberParameters = new object[]
47 {
49 typeof(int),
51 typeof(int),
52 typeof(int)
53 }, ReturnType = typeof(void))]
54 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
55 public static CachedBuffer Request(byte[] data, int offset, int size)
56 {
57 throw null;
58 }
59
60 [global::Cpp2ILInjected.Token(Token = "0x60035BE")]
61 [global::Cpp2ILInjected.Address(RVA = "0x13DB518", Offset = "0x13DB518", Length = "0x1C4")]
62 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
63 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(CachedBuffer), Member = "Recycle", ReturnType = typeof(void))]
64 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
65 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Enter", MemberParameters = new object[]
66 {
67 typeof(object),
68 typeof(ref bool)
69 }, ReturnType = typeof(void))]
70 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Queue<>), Member = "Enqueue", MemberParameters = new object[] { "T" }, ReturnType = typeof(void))]
71 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Exit", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
72 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 12)]
73 public static void Recycle(CachedBuffer buffer)
74 {
75 throw null;
76 }
77
78 [global::Cpp2ILInjected.Token(Token = "0x60035BF")]
79 [global::Cpp2ILInjected.Address(RVA = "0x13DB6E8", Offset = "0x13DB6E8", Length = "0x25C")]
80 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
81 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
82 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Enter", MemberParameters = new object[]
83 {
84 typeof(object),
85 typeof(ref bool)
86 }, ReturnType = typeof(void))]
87 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(int), Member = "ToString", ReturnType = typeof(string))]
88 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
89 {
90 typeof(string),
91 typeof(string)
92 }, ReturnType = typeof(string))]
93 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Console), Member = "WriteLine", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
94 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Exit", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
95 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 16)]
96 public static void PrintBufferSizes()
97 {
98 throw null;
99 }
100
101 // Note: this type is marked as 'beforefieldinit'.
102 [global::Cpp2ILInjected.Token(Token = "0x60035C0")]
103 [global::Cpp2ILInjected.Address(RVA = "0x13DB944", Offset = "0x13DB944", Length = "0x100")]
104 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
105 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
106 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Queue<>), Member = ".ctor", ReturnType = typeof(void))]
107 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 8)]
108 static BufferPool()
109 {
110 throw null;
111 }
112
113 [global::Cpp2ILInjected.Token(Token = "0x4007693")]
114 private const int SMALL_BUFFER_SIZE = 32;
115
116 [global::Cpp2ILInjected.Token(Token = "0x4007694")]
117 private const int MEDIUM_BUFFER_SIZE = 256;
118
119 [global::Cpp2ILInjected.Token(Token = "0x4007695")]
120 private const int LARGE_BUFFER_SIZE = 16384;
121
122 [global::Cpp2ILInjected.Token(Token = "0x4007696")]
123 private static object bufferLock;
124
125 [global::Cpp2ILInjected.Token(Token = "0x4007697")]
127
128 [global::Cpp2ILInjected.Token(Token = "0x4007698")]
130
131 [global::Cpp2ILInjected.Token(Token = "0x4007699")]
133 }
134}
class f__AnonymousType0<< Count > j__TPar
static CachedBuffer Request(int size)
Definition BufferPool.cs:37
static CachedBuffer Request(byte[] data, int offset, int size)
Definition BufferPool.cs:55
static Queue< CachedBuffer > LargeBufferQueue
static Queue< CachedBuffer > SmallBufferQueue
static void Recycle(CachedBuffer buffer)
Definition BufferPool.cs:73
static Queue< CachedBuffer > MediumBufferQueue