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
WeakHashtable.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x02000405 RID: 1029
8 internal sealed class WeakHashtable : Hashtable
9 {
10 // Token: 0x06001BF1 RID: 7153 RVA: 0x0004CC98 File Offset: 0x0004AE98
11 internal WeakHashtable()
12 {
13 if (!true)
14 {
15 }
16 }
17
18 // Token: 0x06001BF2 RID: 7154 RVA: 0x0004CCA8 File Offset: 0x0004AEA8
19 public override void Clear()
20 {
21 base.Clear();
22 }
23
24 // Token: 0x06001BF3 RID: 7155 RVA: 0x0004CCBC File Offset: 0x0004AEBC
25 public override void Remove(object key)
26 {
27 base.Remove(key);
28 }
29
30 // Token: 0x06001BF4 RID: 7156 RVA: 0x0004CCD0 File Offset: 0x0004AED0
31 public void SetWeak(object key, object value)
32 {
33 this.ScavengeKeys();
34 }
35
36 // Token: 0x06001BF5 RID: 7157 RVA: 0x0004CCE4 File Offset: 0x0004AEE4
37 private void ScavengeKeys()
38 {
39 if (this != null)
40 {
41 if (this._lastHashCount != 0)
42 {
43 long totalMemory = GC.GetTotalMemory(false);
44 if (this._lastGlobalMem != 0L)
45 {
47 return;
48 }
50 return;
51 }
52 else
53 {
55 }
56 }
57 }
58
59 // Token: 0x06001BF6 RID: 7158 RVA: 0x0004CDA8 File Offset: 0x0004AFA8
60 // Note: this type is marked as 'beforefieldinit'.
62 {
63 }
64
65 // Token: 0x04001387 RID: 4999
67
68 // Token: 0x04001388 RID: 5000
69 private long _lastGlobalMem;
70
71 // Token: 0x04001389 RID: 5001
72 private int _lastHashCount;
73
74 // Token: 0x02000406 RID: 1030
76 {
77 // Token: 0x06001BF7 RID: 7159 RVA: 0x0004CDB8 File Offset: 0x0004AFB8
78 bool IEqualityComparer.Equals(object x, object y)
79 {
80 while (x == null || y == null)
81 {
82 }
83 long num = 0L;
84 long num2 = 0L;
85 if (num == 0L)
86 {
87 if (num2 != 0L)
88 {
89 return;
90 }
91 while (num == 0L)
92 {
93 }
94 }
95 if (num2 != 0L)
96 {
97 return;
98 }
99 }
100
101 // Token: 0x06001BF8 RID: 7160 RVA: 0x00002050 File Offset: 0x00000250
103 {
104 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
105 }
106
107 // Token: 0x06001BF9 RID: 7161 RVA: 0x0004CDE0 File Offset: 0x0004AFE0
109 {
110 }
111 }
112
113 // Token: 0x02000407 RID: 1031
115 {
116 // Token: 0x06001BFA RID: 7162 RVA: 0x0004CDF4 File Offset: 0x0004AFF4
117 internal EqualityWeakReference(object o)
118 : base(o)
119 {
120 this._hashCode = o;
121 }
122
123 // Token: 0x06001BFB RID: 7163 RVA: 0x0004CE10 File Offset: 0x0004B010
124 public override bool Equals(object o)
125 {
126 if (o != null)
127 {
128 int hashCode = this._hashCode;
129 }
130 return true;
131 }
132
133 // Token: 0x06001BFC RID: 7164 RVA: 0x0004CE2C File Offset: 0x0004B02C
134 public override int GetHashCode()
135 {
136 return this._hashCode;
137 }
138
139 // Token: 0x0400138A RID: 5002
140 private int _hashCode;
141 }
142 }
143}
class f__AnonymousType0<< Count > j__TPar
override void Remove(object key)
void SetWeak(object key, object value)
static IEqualityComparer _comparer
static long GetTotalMemory(bool forceFullCollection)
Definition GC.cs:137
bool Equals(object x, object y)