Refactor the ByteArray and DirectByteArray classes

Signed-off-by: Graham <gpe@openrs2.dev>
Graham 4 years ago
parent 201f4cbd46
commit a75d20f6fd
  1. 66
      share/deob/map/client.yaml
  2. 48
      share/deob/map/unpackclass.yaml

@ -86,7 +86,7 @@ classes:
client!gn: "Class4_Sub11" client!gn: "Class4_Sub11"
client!go: "Class72" client!go: "Class72"
client!h: "Class73" client!h: "Class73"
client!hc: "Class75" client!hc: "ByteArray"
client!he: "Class53_Sub2" client!he: "Class53_Sub2"
client!hf: "Class77_Sub1" client!hf: "Class77_Sub1"
client!hi: "Class79" client!hi: "Class79"
@ -124,7 +124,7 @@ classes:
client!kf: "Class104" client!kf: "Class104"
client!kg: "Class105" client!kg: "Class105"
client!kh: "Class4_Sub3_Sub4_Sub2" client!kh: "Class4_Sub3_Sub4_Sub2"
client!ki: "Class75_Sub1" client!ki: "DirectByteArray"
client!kj: "Interface3" client!kj: "Interface3"
client!kk: "Class106" client!kk: "Class106"
client!kl: "Class4_Sub1_Sub13" client!kl: "Class4_Sub1_Sub13"
@ -3243,8 +3243,8 @@ fields:
owner: "Class4_Sub11" owner: "Class4_Sub11"
name: "anInt2113" name: "anInt2113"
client!gn.v Z: client!gn.v Z:
owner: "Static3" owner: "ByteArray"
name: "aBoolean145" name: "directBuffersUnsupported"
client!gn.x I: client!gn.x I:
owner: "Class4_Sub11" owner: "Class4_Sub11"
name: "anInt2115" name: "anInt2115"
@ -4911,8 +4911,8 @@ fields:
owner: "Class4_Sub3_Sub4_Sub2" owner: "Class4_Sub3_Sub4_Sub2"
name: "aSoftReference1" name: "aSoftReference1"
client!ki.e Ljava/nio/ByteBuffer;: client!ki.e Ljava/nio/ByteBuffer;:
owner: "Class75_Sub1" owner: "DirectByteArray"
name: "aByteBuffer11" name: "buffer"
client!kk.a [B: client!kk.a [B:
owner: "Class106" owner: "Class106"
name: "aByteArray30" name: "aByteArray30"
@ -14210,13 +14210,13 @@ methods:
0: "arg0" 0: "arg0"
locals: {} locals: {}
client!c.a ([BZI)Ljava/lang/Object;: client!c.a ([BZI)Ljava/lang/Object;:
owner: "Static10" owner: "ByteArray"
name: "method461" name: "wrap"
arguments: arguments:
0: "arg0" 0: "bytes"
locals: locals:
19: "local19" 19: "array"
26: "local26" 26: "ex"
client!c.b (IB)Z: client!c.b (IB)Z:
owner: "Class24_Sub1" owner: "Class24_Sub1"
name: "method442" name: "method442"
@ -21854,8 +21854,8 @@ methods:
1: "arg1" 1: "arg1"
locals: {} locals: {}
client!hc.a (I)[B: client!hc.a (I)[B:
owner: "Class75" owner: "ByteArray"
name: "method2324" name: "get"
arguments: {} arguments: {}
locals: {} locals: {}
client!hc.a (IB)V: client!hc.a (IB)V:
@ -21864,10 +21864,10 @@ methods:
arguments: {} arguments: {}
locals: {} locals: {}
client!hc.a (I[B)V: client!hc.a (I[B)V:
owner: "Class75" owner: "ByteArray"
name: "method2325" name: "set"
arguments: arguments:
1: "arg0" 1: "bytes"
locals: {} locals: {}
client!hd.a (IIII)V: client!hd.a (IIII)V:
owner: "Static18" owner: "Static18"
@ -26381,16 +26381,16 @@ methods:
arguments: {} arguments: {}
locals: {} locals: {}
client!ki.a (I)[B: client!ki.a (I)[B:
owner: "Class75_Sub1" owner: "DirectByteArray"
name: "method2324" name: "get"
arguments: {} arguments: {}
locals: locals:
4: "local4" 4: "bytes"
client!ki.a (I[B)V: client!ki.a (I[B)V:
owner: "Class75_Sub1" owner: "DirectByteArray"
name: "method2325" name: "set"
arguments: arguments:
1: "arg0" 1: "bytes"
locals: {} locals: {}
client!kj.a (IB)Lclient!mi;: client!kj.a (IB)Lclient!mi;:
owner: "Interface3" owner: "Interface3"
@ -35592,14 +35592,14 @@ methods:
124: "local124" 124: "local124"
134: "local134" 134: "local134"
client!qa.a (IZLjava/lang/Object;)[B: client!qa.a (IZLjava/lang/Object;)[B:
owner: "Static29" owner: "ByteArray"
name: "method3492" name: "unwrap"
arguments: arguments:
1: "arg0" 2: "in"
2: "arg1" 1: "copy"
locals: locals:
20: "local20" 20: "bytes"
34: "local34" 34: "array"
client!qa.a (Lclient!nh;Z)V: client!qa.a (Lclient!nh;Z)V:
owner: "Static29" owner: "Static29"
name: "method3493" name: "method3493"
@ -43702,13 +43702,13 @@ methods:
2: "arg1" 2: "arg1"
locals: {} locals: {}
client!vf.a ([BI)[B: client!vf.a ([BI)[B:
owner: "Static36" owner: "ByteArray"
name: "method4445" name: "copy"
arguments: arguments:
0: "arg0" 0: "in"
locals: locals:
14: "local14" 14: "len"
17: "local17" 17: "out"
client!vg.a (I)V: client!vg.a (I)V:
owner: "Class53_Sub4" owner: "Class53_Sub4"
name: "method3815" name: "method3815"

@ -1,6 +1,6 @@
--- ---
classes: classes:
unpackclass!a: "Class198" unpackclass!a: "ByteArray"
unpackclass!aa: "Class199" unpackclass!aa: "Class199"
unpackclass!c: "Class200" unpackclass!c: "Class200"
unpackclass!e: "Class201_Sub1" unpackclass!e: "Class201_Sub1"
@ -22,8 +22,8 @@ classes:
unpackclass!w: "Node" unpackclass!w: "Node"
fields: fields:
unpackclass!a.a Z: unpackclass!a.a Z:
owner: "Class198" owner: "ByteArray"
name: "aBoolean428" name: "directBuffersUnsupported"
unpackclass!aa.a I: unpackclass!aa.a I:
owner: "Class199" owner: "Class199"
name: "anInt6141" name: "anInt6141"
@ -413,40 +413,40 @@ fields:
name: "prev" name: "prev"
methods: methods:
unpackclass!a.a ()[B: unpackclass!a.a ()[B:
owner: "Class198" owner: "ByteArray"
name: "method4891" name: "get"
arguments: {} arguments: {}
locals: {} locals: {}
unpackclass!a.a (Ljava/lang/Object;Z)[B: unpackclass!a.a (Ljava/lang/Object;Z)[B:
owner: "Class198" owner: "ByteArray"
name: "method4889" name: "unwrap"
arguments: arguments:
0: "arg0" 0: "in"
1: "arg1" 1: "copy"
locals: locals:
9: "local9" 9: "bytes"
22: "local22" 22: "array"
unpackclass!a.a ([B)[B: unpackclass!a.a ([B)[B:
owner: "Class198" owner: "ByteArray"
name: "method4890" name: "copy"
arguments: arguments:
0: "arg0" 0: "in"
locals: locals:
2: "local2" 2: "len"
5: "local5" 5: "out"
unpackclass!a.a ([BZ)Ljava/lang/Object;: unpackclass!a.a ([BZ)Ljava/lang/Object;:
owner: "Class198" owner: "ByteArray"
name: "method4888" name: "wrap"
arguments: arguments:
0: "arg0" 0: "bytes"
locals: locals:
14: "local14" 14: "array"
20: "local20" 20: "ex"
unpackclass!a.b ([B)V: unpackclass!a.b ([B)V:
owner: "Class198" owner: "ByteArray"
name: "method4892" name: "set"
arguments: arguments:
0: "arg0" 0: "bytes"
locals: {} locals: {}
unpackclass!aa.<init> (ZZ)V: unpackclass!aa.<init> (ZZ)V:
owner: "Class199" owner: "Class199"

Loading…
Cancel
Save