Fixed bulk put offset for sliced arrays

This commit is contained in:
Eric Scharff 2007-09-28 12:19:13 -06:00
parent cc8dd6d8c0
commit bcd5f5b94b

View File

@ -89,7 +89,7 @@ public class ByteBuffer {
}
public ByteBuffer put(byte[] arr, int offset, int len) {
System.arraycopy(arr, offset, array, arrayOffset, len);
System.arraycopy(arr, offset, array, arrayOffset+position, len);
position += len;
return this;
}