mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-12 17:40:19 -07:00
Rename Class146_Sub1 to DirectByteArray
This commit is contained in:
parent
23b144b6ac
commit
e56aaf901a
2 changed files with 2 additions and 2 deletions
29
client/src/main/java/DirectByteArray.java
Normal file
29
client/src/main/java/DirectByteArray.java
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
import java.nio.ByteBuffer;
|
||||
import org.openrs2.deob.annotation.OriginalArg;
|
||||
import org.openrs2.deob.annotation.OriginalClass;
|
||||
import org.openrs2.deob.annotation.OriginalMember;
|
||||
import org.openrs2.deob.annotation.Pc;
|
||||
|
||||
@OriginalClass("client!ua")
|
||||
public final class DirectByteArray extends ByteArray {
|
||||
|
||||
@OriginalMember(owner = "client!ua", name = "m", descriptor = "Ljava/nio/ByteBuffer;")
|
||||
private ByteBuffer aByteBuffer10;
|
||||
|
||||
@OriginalMember(owner = "client!ua", name = "a", descriptor = "(I[B)V")
|
||||
@Override
|
||||
public final void method4238(@OriginalArg(1) byte[] arg0) {
|
||||
this.aByteBuffer10 = ByteBuffer.allocateDirect(arg0.length);
|
||||
this.aByteBuffer10.position(0);
|
||||
this.aByteBuffer10.put(arg0);
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!ua", name = "a", descriptor = "(I)[B")
|
||||
@Override
|
||||
public final byte[] method4236() {
|
||||
@Pc(4) byte[] local4 = new byte[this.aByteBuffer10.capacity()];
|
||||
this.aByteBuffer10.position(0);
|
||||
this.aByteBuffer10.get(local4);
|
||||
return local4;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue