Fix ByteBuffer bugs

This commit is contained in:
Eric Scharff 2007-09-28 13:18:28 -06:00
parent bcd5f5b94b
commit da6dd8fba3

@ -60,6 +60,7 @@ public class ByteBuffer {
if (position != 0) {
System.arraycopy(array, arrayOffset+position, array, arrayOffset, remaining());
}
position=0;
return this;
}
@ -74,7 +75,7 @@ public class ByteBuffer {
}
public ByteBuffer put(byte val) {
array[position++] = val;
array[arrayOffset+(position++)] = val;
return this;
}