mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-12 01:21:23 -07:00
29 lines
978 B
Java
29 lines
978 B
Java
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;
|
|
}
|
|
}
|