mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-17 08:25:14 -06:00
Consolidated some more static classes, identified some util functions
This commit is contained in:
parent
8aaa00efd5
commit
2bc60f339b
97 changed files with 3032 additions and 3275 deletions
|
|
@ -12,70 +12,70 @@ public final class LruHashTable {
|
|||
private SecondaryNode aClass3_Sub2_37 = new SecondaryNode();
|
||||
|
||||
@OriginalMember(owner = "client!gn", name = "s", descriptor = "Lclient!ce;")
|
||||
private final SecondaryLinkedList aClass16_1 = new SecondaryLinkedList();
|
||||
private final SecondaryLinkedList queue = new SecondaryLinkedList();
|
||||
|
||||
@OriginalMember(owner = "client!gn", name = "u", descriptor = "I")
|
||||
private int anInt2314;
|
||||
private int available;
|
||||
|
||||
@OriginalMember(owner = "client!gn", name = "r", descriptor = "I")
|
||||
private final int anInt2313;
|
||||
private final int capacity;
|
||||
|
||||
@OriginalMember(owner = "client!gn", name = "q", descriptor = "Lclient!sc;")
|
||||
private final HashTable aClass133_5;
|
||||
private final HashTable table;
|
||||
|
||||
@OriginalMember(owner = "client!gn", name = "<init>", descriptor = "(I)V")
|
||||
public LruHashTable(@OriginalArg(0) int arg0) {
|
||||
@Pc(13) int local13 = 1;
|
||||
this.anInt2314 = arg0;
|
||||
this.available = arg0;
|
||||
while (arg0 > local13 + local13) {
|
||||
local13 += local13;
|
||||
}
|
||||
this.anInt2313 = arg0;
|
||||
this.aClass133_5 = new HashTable(local13);
|
||||
this.capacity = arg0;
|
||||
this.table = new HashTable(local13);
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!gn", name = "a", descriptor = "(JI)Lclient!rg;")
|
||||
public final SecondaryNode get(@OriginalArg(0) long arg0) {
|
||||
@Pc(16) SecondaryNode local16 = (SecondaryNode) this.aClass133_5.get(arg0);
|
||||
@Pc(16) SecondaryNode local16 = (SecondaryNode) this.table.get(arg0);
|
||||
if (local16 != null) {
|
||||
this.aClass16_1.addTail(local16);
|
||||
this.queue.addTail(local16);
|
||||
}
|
||||
return local16;
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!gn", name = "a", descriptor = "(I)Lclient!ab;")
|
||||
public final Node method1808() {
|
||||
return this.aClass133_5.head();
|
||||
return this.table.head();
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!gn", name = "a", descriptor = "(Lclient!rg;JB)V")
|
||||
public final void put(@OriginalArg(0) SecondaryNode arg0, @OriginalArg(1) long arg1) {
|
||||
if (this.anInt2314 == 0) {
|
||||
@Pc(14) SecondaryNode local14 = this.aClass16_1.removeHead();
|
||||
if (this.available == 0) {
|
||||
@Pc(14) SecondaryNode local14 = this.queue.removeHead();
|
||||
local14.unlink();
|
||||
local14.unlinkSecondary();
|
||||
if (this.aClass3_Sub2_37 == local14) {
|
||||
local14 = this.aClass16_1.removeHead();
|
||||
local14 = this.queue.removeHead();
|
||||
local14.unlink();
|
||||
local14.unlinkSecondary();
|
||||
}
|
||||
} else {
|
||||
this.anInt2314--;
|
||||
this.available--;
|
||||
}
|
||||
this.aClass133_5.put(arg0, arg1);
|
||||
this.aClass16_1.addTail(arg0);
|
||||
this.table.put(arg0, arg1);
|
||||
this.queue.addTail(arg0);
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!gn", name = "b", descriptor = "(I)Lclient!ab;")
|
||||
public final Node method1813() {
|
||||
return this.aClass133_5.next();
|
||||
public final Node next() {
|
||||
return this.table.next();
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!gn", name = "c", descriptor = "(I)V")
|
||||
public final void clear() {
|
||||
this.aClass16_1.clear();
|
||||
this.aClass133_5.clear();
|
||||
this.queue.clear();
|
||||
this.table.clear();
|
||||
this.aClass3_Sub2_37 = new SecondaryNode();
|
||||
this.anInt2314 = this.anInt2313;
|
||||
this.available = this.capacity;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue