Fixes some test of ByteBuffer

This commit is contained in:
konsoletyper 2014-10-15 17:50:58 +04:00
parent 2cd397c81c
commit 0227c0cedf

View File

@ -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) {