code: 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;
      }
docs: Enlarge this byte vector so that it can receive n more bytes.
  
  @param size
  number of additional bytes that this byte vector should be
  able to receive.