Codebase list libbytelist-java / a908902
ByteList#ensure should make the buffer requested size, not * 1.5. Charles Oliver Nutter 9 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
336336 */
337337 public void ensure(int length) {
338338 if (begin + length > bytes.length) {
339 byte[] tmp = new byte[length + (length >>> 1)];
339 byte[] tmp = new byte[length];
340340 System.arraycopy(bytes, begin, tmp, 0, realSize);
341341 bytes = tmp;
342342 begin = 0;