mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-16 11:30:19 -07:00
Renamed HintArrowManager methods/fields
This commit is contained in:
parent
afa18fe8a7
commit
45f3a834f7
25 changed files with 617 additions and 617 deletions
|
|
@ -9,68 +9,57 @@ import org.openrs2.deob.annotation.Pc;
|
|||
public final class SoftLruHashTable {
|
||||
|
||||
@OriginalMember(owner = "client!n", name = "k", descriptor = "Lclient!ce;")
|
||||
private final SecondaryLinkedList aClass16_8 = new SecondaryLinkedList();
|
||||
private final SecondaryLinkedList queue = new SecondaryLinkedList();
|
||||
|
||||
@OriginalMember(owner = "client!n", name = "m", descriptor = "I")
|
||||
private final int anInt3970;
|
||||
private final int capacity;
|
||||
|
||||
@OriginalMember(owner = "client!n", name = "g", descriptor = "I")
|
||||
private int anInt3966;
|
||||
private int available;
|
||||
|
||||
@OriginalMember(owner = "client!n", name = "n", descriptor = "Lclient!sc;")
|
||||
private final HashTable aClass133_18;
|
||||
private final HashTable table;
|
||||
|
||||
@OriginalMember(owner = "client!n", name = "<init>", descriptor = "(I)V")
|
||||
public SoftLruHashTable(@OriginalArg(0) int arg0) {
|
||||
this.anInt3970 = arg0;
|
||||
this.capacity = arg0;
|
||||
@Pc(11) int local11;
|
||||
for (local11 = 1; local11 + local11 < arg0; local11 += local11) {
|
||||
}
|
||||
this.anInt3966 = arg0;
|
||||
this.aClass133_18 = new HashTable(local11);
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!gk", name = "a", descriptor = "(Lclient!rg;Lclient!rg;B)V")
|
||||
public static void method1772(@OriginalArg(0) SecondaryNode arg0, @OriginalArg(1) SecondaryNode arg1) {
|
||||
if (arg1.secondaryPrev != null) {
|
||||
arg1.unlinkSecondary();
|
||||
}
|
||||
arg1.secondaryPrev = arg0;
|
||||
arg1.secondaryNext = arg0.secondaryNext;
|
||||
arg1.secondaryPrev.secondaryNext = arg1;
|
||||
arg1.secondaryNext.secondaryPrev = arg1;
|
||||
this.available = arg0;
|
||||
this.table = new HashTable(local11);
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!n", name = "a", descriptor = "(BLjava/lang/Object;J)V")
|
||||
public final void put(@OriginalArg(1) Object arg0, @OriginalArg(2) long arg1) {
|
||||
this.method3098(arg1);
|
||||
if (this.anInt3966 == 0) {
|
||||
@Pc(26) ReferenceNode local26 = (ReferenceNode) this.aClass16_8.removeHead();
|
||||
this.remove(arg1);
|
||||
if (this.available == 0) {
|
||||
@Pc(26) ReferenceNode local26 = (ReferenceNode) this.queue.removeHead();
|
||||
local26.unlink();
|
||||
local26.unlinkSecondary();
|
||||
} else {
|
||||
this.anInt3966--;
|
||||
this.available--;
|
||||
}
|
||||
@Pc(44) HardReferenceNode local44 = new HardReferenceNode(arg0);
|
||||
this.aClass133_18.put(local44, arg1);
|
||||
this.aClass16_8.addTail(local44);
|
||||
this.table.put(local44, arg1);
|
||||
this.queue.addTail(local44);
|
||||
local44.secondaryKey = 0L;
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!n", name = "a", descriptor = "(JB)V")
|
||||
public final void method3098(@OriginalArg(0) long arg0) {
|
||||
@Pc(6) ReferenceNode local6 = (ReferenceNode) this.aClass133_18.get(arg0);
|
||||
public final void remove(@OriginalArg(0) long arg0) {
|
||||
@Pc(6) ReferenceNode local6 = (ReferenceNode) this.table.get(arg0);
|
||||
if (local6 != null) {
|
||||
local6.unlink();
|
||||
local6.unlinkSecondary();
|
||||
this.anInt3966++;
|
||||
this.available++;
|
||||
}
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!n", name = "a", descriptor = "(I)I")
|
||||
public final int method3100() {
|
||||
public final int size() {
|
||||
@Pc(10) int local10 = 0;
|
||||
for (@Pc(16) ReferenceNode local16 = (ReferenceNode) this.aClass16_8.head(); local16 != null; local16 = (ReferenceNode) this.aClass16_8.next()) {
|
||||
for (@Pc(16) ReferenceNode local16 = (ReferenceNode) this.queue.head(); local16 != null; local16 = (ReferenceNode) this.queue.next()) {
|
||||
if (!local16.isSoft()) {
|
||||
local10++;
|
||||
}
|
||||
|
|
@ -83,17 +72,17 @@ public final class SoftLruHashTable {
|
|||
if (ReferenceNodeFactory.SOFT_REFERENCE_NODE_FACTORY == null) {
|
||||
return;
|
||||
}
|
||||
for (@Pc(9) ReferenceNode local9 = (ReferenceNode) this.aClass16_8.head(); local9 != null; local9 = (ReferenceNode) this.aClass16_8.next()) {
|
||||
for (@Pc(9) ReferenceNode local9 = (ReferenceNode) this.queue.head(); local9 != null; local9 = (ReferenceNode) this.queue.next()) {
|
||||
if (local9.isSoft()) {
|
||||
if (local9.get() == null) {
|
||||
local9.unlink();
|
||||
local9.unlinkSecondary();
|
||||
this.anInt3966++;
|
||||
this.available++;
|
||||
}
|
||||
} else if (++local9.secondaryKey > (long) arg0) {
|
||||
@Pc(33) ReferenceNode local33 = ReferenceNodeFactory.SOFT_REFERENCE_NODE_FACTORY.create(local9);
|
||||
this.aClass133_18.put(local33, local9.key);
|
||||
method1772(local9, local33);
|
||||
this.table.put(local33, local9.key);
|
||||
SecondaryLinkedList.insertAfter(local9, local33);
|
||||
local9.unlink();
|
||||
local9.unlinkSecondary();
|
||||
}
|
||||
|
|
@ -101,26 +90,26 @@ public final class SoftLruHashTable {
|
|||
}
|
||||
|
||||
@OriginalMember(owner = "client!n", name = "b", descriptor = "(B)V")
|
||||
public final void method3103() {
|
||||
for (@Pc(7) ReferenceNode local7 = (ReferenceNode) this.aClass16_8.head(); local7 != null; local7 = (ReferenceNode) this.aClass16_8.next()) {
|
||||
public final void removeSoft() {
|
||||
for (@Pc(7) ReferenceNode local7 = (ReferenceNode) this.queue.head(); local7 != null; local7 = (ReferenceNode) this.queue.next()) {
|
||||
if (local7.isSoft()) {
|
||||
local7.unlink();
|
||||
local7.unlinkSecondary();
|
||||
this.anInt3966++;
|
||||
this.available++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!n", name = "c", descriptor = "(I)V")
|
||||
public final void clear() {
|
||||
this.aClass16_8.clear();
|
||||
this.aClass133_18.clear();
|
||||
this.anInt3966 = this.anInt3970;
|
||||
this.queue.clear();
|
||||
this.table.clear();
|
||||
this.available = this.capacity;
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!n", name = "b", descriptor = "(JB)Ljava/lang/Object;")
|
||||
public final Object get(@OriginalArg(0) long arg0) {
|
||||
@Pc(12) ReferenceNode local12 = (ReferenceNode) this.aClass133_18.get(arg0);
|
||||
@Pc(12) ReferenceNode local12 = (ReferenceNode) this.table.get(arg0);
|
||||
if (local12 == null) {
|
||||
return null;
|
||||
}
|
||||
|
|
@ -128,18 +117,18 @@ public final class SoftLruHashTable {
|
|||
if (local27 == null) {
|
||||
local12.unlink();
|
||||
local12.unlinkSecondary();
|
||||
this.anInt3966++;
|
||||
this.available++;
|
||||
return null;
|
||||
}
|
||||
if (local12.isSoft()) {
|
||||
@Pc(53) HardReferenceNode local53 = new HardReferenceNode(local27);
|
||||
this.aClass133_18.put(local53, local12.key);
|
||||
this.aClass16_8.addTail(local53);
|
||||
this.table.put(local53, local12.key);
|
||||
this.queue.addTail(local53);
|
||||
local53.secondaryKey = 0L;
|
||||
local12.unlink();
|
||||
local12.unlinkSecondary();
|
||||
} else {
|
||||
this.aClass16_8.addTail(local12);
|
||||
this.queue.addTail(local12);
|
||||
local12.secondaryKey = 0L;
|
||||
}
|
||||
return local27;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue