public static byte [ ] grow ( byte [ ] bytes , int increment ) { if ( bytes == null ) { return new byte [ 1 ] ; } byte [ ] temp = new byte [ bytes . length + increment ] ; System . arraycopy ( bytes , 0 , temp , 0 , bytes . length ) ; return temp ; }
Grows the given array by the given size .