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
BufferPool.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x0200061A RID: 1562
8 public static class BufferPool
9 {
10 // Token: 0x060035BC RID: 13756 RVA: 0x000021DB File Offset: 0x000003DB
11 public static CachedBuffer Request(int size)
12 {
13 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
14 }
15
16 // Token: 0x060035BD RID: 13757 RVA: 0x0021184C File Offset: 0x0020FA4C
17 public static CachedBuffer Request(byte[] data, int offset, int size)
18 {
19 if (!true)
20 {
21 }
23 byte[] data2 = cachedBuffer.Data;
24 return cachedBuffer;
25 }
26
27 // Token: 0x060035BE RID: 13758 RVA: 0x0021186C File Offset: 0x0020FA6C
28 public static void Recycle(CachedBuffer buffer)
29 {
30 if (buffer.Data == null)
31 {
32 }
33 }
34
35 // Token: 0x060035BF RID: 13759 RVA: 0x002118B4 File Offset: 0x0020FAB4
36 public static void PrintBufferSizes()
37 {
38 if (!true)
39 {
40 }
41 if (!true)
42 {
43 }
44 string text;
45 Console.WriteLine("SmallBufferQueue.Count: " + text);
46 string text2;
47 Console.WriteLine("MediumBufferQueue.Count: " + text2);
48 string text3;
49 Console.WriteLine("LargeBufferQueue.Count: " + text3);
51 long num = 0L;
52 if ("" != null)
53 {
54 }
55 if (num == 0L)
56 {
57 return;
58 }
59 throw new OutOfMemoryException();
60 }
61
62 // Token: 0x060035C0 RID: 13760 RVA: 0x00211938 File Offset: 0x0020FB38
63 // Note: this type is marked as 'beforefieldinit'.
64 static BufferPool()
65 {
66 }
67
68 // Token: 0x04007693 RID: 30355
69 private const int SMALL_BUFFER_SIZE = 32;
70
71 // Token: 0x04007694 RID: 30356
72 private const int MEDIUM_BUFFER_SIZE = 256;
73
74 // Token: 0x04007695 RID: 30357
75 private const int LARGE_BUFFER_SIZE = 16384;
76
77 // Token: 0x04007696 RID: 30358
78 private static object bufferLock;
79
80 // Token: 0x04007697 RID: 30359
82
83 // Token: 0x04007698 RID: 30360
85
86 // Token: 0x04007699 RID: 30361
88 }
89}
class f__AnonymousType0<< Count > j__TPar
static void WriteLine(object value)
Definition Console.cs:134
static CachedBuffer Request(int size)
Definition BufferPool.cs:11
static CachedBuffer Request(byte[] data, int offset, int size)
Definition BufferPool.cs:17
static Queue< CachedBuffer > LargeBufferQueue
Definition BufferPool.cs:87
static Queue< CachedBuffer > SmallBufferQueue
Definition BufferPool.cs:81
static void Recycle(CachedBuffer buffer)
Definition BufferPool.cs:28
static Queue< CachedBuffer > MediumBufferQueue
Definition BufferPool.cs:84