mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-23 23:04:50 -08:00
Fixes some test of ByteBuffer
This commit is contained in:
parent
2cd397c81c
commit
0227c0cedf
|
@ -11,12 +11,12 @@ public abstract class TByteBuffer extends TBuffer implements TComparable<TByteBu
|
||||||
byte[] array;
|
byte[] array;
|
||||||
TByteOrder order = TByteOrder.BIG_ENDIAN;
|
TByteOrder order = TByteOrder.BIG_ENDIAN;
|
||||||
|
|
||||||
TByteBuffer(int start, int capacity, byte[] array, int offset, int length) {
|
TByteBuffer(int start, int capacity, byte[] array, int position, int limit) {
|
||||||
super(capacity);
|
super(capacity);
|
||||||
this.start = start;
|
this.start = start;
|
||||||
this.array = array;
|
this.array = array;
|
||||||
position = offset;
|
this.position = position;
|
||||||
limit = position + length;
|
this.limit = limit;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static TByteBuffer allocateDirect(int capacity) {
|
public static TByteBuffer allocateDirect(int capacity) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user