private void enlarge ( final int size ) { int length1 = 2 * data . length ; int length2 = length + size ; byte [ ] newData = new byte [ length1 > length2 ? length1 : length2 ] ; System . arraycopy ( data , 0 , newData , 0 , length ) ; data = newData ; }
Enlarge this byte vector so that it can receive n more bytes .