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
LegacyNetBufferPool.cs
Go to the documentation of this file.
1using System;
6
7namespace Terraria.Net
8{
9 [global::Cpp2ILInjected.Token(Token = "0x20006A0")]
11 {
12 [global::Cpp2ILInjected.Token(Token = "0x6003889")]
13 [global::Cpp2ILInjected.Address(RVA = "0x143BE88", Offset = "0x143BE88", Length = "0x308")]
14 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
15 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LegacyNetBufferPool), Member = "RequestBuffer", MemberParameters = new object[]
16 {
17 typeof(byte[]),
18 typeof(int),
19 typeof(int)
20 }, ReturnType = typeof(byte[]))]
21 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
22 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Enter", MemberParameters = new object[]
23 {
24 typeof(object),
25 typeof(ref bool)
26 }, ReturnType = typeof(void))]
27 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Queue<>), Member = "Dequeue", ReturnType = "T")]
28 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Exit", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
29 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 25)]
30 public static byte[] RequestBuffer(int size)
31 {
32 throw null;
33 }
34
35 [global::Cpp2ILInjected.Token(Token = "0x600388A")]
36 [global::Cpp2ILInjected.Address(RVA = "0x143C190", Offset = "0x143C190", Length = "0x8C")]
37 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
38 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LegacyNetBufferPool), Member = "RequestBuffer", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(byte[]))]
39 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Buffer), Member = "BlockCopy", MemberParameters = new object[]
40 {
42 typeof(int),
44 typeof(int),
45 typeof(int)
46 }, ReturnType = typeof(void))]
47 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
48 public static byte[] RequestBuffer(byte[] data, int offset, int size)
49 {
50 throw null;
51 }
52
53 [global::Cpp2ILInjected.Token(Token = "0x600388B")]
54 [global::Cpp2ILInjected.Address(RVA = "0x143C21C", Offset = "0x143C21C", Length = "0x1C0")]
55 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
56 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
57 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Enter", MemberParameters = new object[]
58 {
59 typeof(object),
60 typeof(ref bool)
61 }, ReturnType = typeof(void))]
62 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Queue<>), Member = "Enqueue", MemberParameters = new object[] { "T" }, ReturnType = typeof(void))]
63 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Exit", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
64 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 12)]
65 public static void ReturnBuffer(byte[] buffer)
66 {
67 throw null;
68 }
69
70 [global::Cpp2ILInjected.Token(Token = "0x600388C")]
71 [global::Cpp2ILInjected.Address(RVA = "0x143C3DC", Offset = "0x143C3DC", Length = "0x334")]
72 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
73 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
74 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Enter", MemberParameters = new object[]
75 {
76 typeof(object),
77 typeof(ref bool)
78 }, ReturnType = typeof(void))]
79 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(int), Member = "ToString", ReturnType = typeof(string))]
80 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
81 {
82 typeof(string),
83 typeof(string),
84 typeof(string),
85 typeof(string)
86 }, ReturnType = typeof(string))]
87 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "NewText", MemberParameters = new object[]
88 {
89 typeof(string),
90 typeof(byte),
91 typeof(byte),
92 typeof(byte)
93 }, ReturnType = typeof(void))]
94 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
95 {
96 typeof(string),
97 typeof(string)
98 }, ReturnType = typeof(string))]
99 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Exit", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
100 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 17)]
101 public static void DisplayBufferSizes()
102 {
103 throw null;
104 }
105
106 [global::Cpp2ILInjected.Token(Token = "0x600388D")]
107 [global::Cpp2ILInjected.Address(RVA = "0x143C710", Offset = "0x143C710", Length = "0x324")]
108 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
109 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
110 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Enter", MemberParameters = new object[]
111 {
112 typeof(object),
113 typeof(ref bool)
114 }, ReturnType = typeof(void))]
115 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(int), Member = "ToString", ReturnType = typeof(string))]
116 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
117 {
118 typeof(string),
119 typeof(string),
120 typeof(string),
121 typeof(string)
122 }, ReturnType = typeof(string))]
123 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Console), Member = "WriteLine", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
124 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
125 {
126 typeof(string),
127 typeof(string)
128 }, ReturnType = typeof(string))]
129 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Exit", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
130 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 18)]
131 public static void PrintBufferSizes()
132 {
133 throw null;
134 }
135
136 [global::Cpp2ILInjected.Token(Token = "0x600388E")]
137 [global::Cpp2ILInjected.Address(RVA = "0x143CA34", Offset = "0x143CA34", Length = "0x8")]
138 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
139 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
141 {
142 throw null;
143 }
144
145 // Note: this type is marked as 'beforefieldinit'.
146 [global::Cpp2ILInjected.Token(Token = "0x600388F")]
147 [global::Cpp2ILInjected.Address(RVA = "0x143CA3C", Offset = "0x143CA3C", Length = "0x100")]
148 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
149 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
150 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Queue<>), Member = ".ctor", ReturnType = typeof(void))]
151 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 8)]
153 {
154 throw null;
155 }
156
157 [global::Cpp2ILInjected.Token(Token = "0x400793D")]
158 private const int SMALL_BUFFER_SIZE = 256;
159
160 [global::Cpp2ILInjected.Token(Token = "0x400793E")]
161 private const int MEDIUM_BUFFER_SIZE = 1024;
162
163 [global::Cpp2ILInjected.Token(Token = "0x400793F")]
164 private const int LARGE_BUFFER_SIZE = 16384;
165
166 [global::Cpp2ILInjected.Token(Token = "0x4007940")]
167 private static object bufferLock;
168
169 [global::Cpp2ILInjected.Token(Token = "0x4007941")]
171
172 [global::Cpp2ILInjected.Token(Token = "0x4007942")]
174
175 [global::Cpp2ILInjected.Token(Token = "0x4007943")]
177
178 [global::Cpp2ILInjected.Token(Token = "0x4007944")]
179 private static int _smallBufferCount;
180
181 [global::Cpp2ILInjected.Token(Token = "0x4007945")]
182 private static int _mediumBufferCount;
183
184 [global::Cpp2ILInjected.Token(Token = "0x4007946")]
185 private static int _largeBufferCount;
186
187 [global::Cpp2ILInjected.Token(Token = "0x4007947")]
188 private static int _customBufferCount;
189 }
190}
class f__AnonymousType0<< Count > j__TPar
static byte[] RequestBuffer(int size)
static void ReturnBuffer(byte[] buffer)
static byte[] RequestBuffer(byte[] data, int offset, int size)